Skip to content

Commit b0ce681

Browse files
committed
new year update
1 parent 86c1f51 commit b0ce681

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
February 15, 2025:
2+
- Happy new year!
3+
- The `Details:` field in `fpkg message` gets hidden if there's
4+
no message to show there.
5+
- Fixed installing multiple packages with a single command.
6+
- Apparently it wasn't counting the amount of packages
7+
provided properly, and it also gave a "package name
8+
not provided" error if you entered only one.
9+
110
November 18, 2024:
211
- You can now install multiple items in one command.
312
- Just like in other package managers, you do it here by

fpkg

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,15 @@ case $1 in
129129
# check if we got more than one item
130130
# to install as well
131131

132-
for ((item = 0; item <= $#; item++)); do
132+
ITEMS=$(($# - 2))
133+
for ((ITEM = 0; ITEM <= $ITEMS; ITEM++)); do
133134
exist_check $2
134135
write_check
135136

136137
cd $FPKG_ROOT/$2
137138

138139
# change window title too so that the user
139-
# knows it's running
140+
# knows it's still running
140141
echo -en '\e]0;fpkg: building...\a'
141142

142143
# check if the installation requires
@@ -148,7 +149,8 @@ case $1 in
148149

149150
if [[ $FPKG_LOG && $LOG_FMT ]]; then
150151
# check if the log dir exists first
151-
# as it's by default inside /tmp
152+
# and create it accordingly as it's
153+
# by default inside /tmp
152154
[[ ! -d $FPKG_LOG ]] && mkdir $FPKG_LOG
153155

154156
# $LOG_FMT gets expanded here for creating the file
@@ -319,7 +321,11 @@ case $1 in
319321
if [[ $1 = "-d" ]]; then
320322
git show
321323
else
322-
git --no-pager log -1 --pretty="Who: %cn%nWhat: %s%nDetails: %b"
324+
if [[ -z $(git --no-pager log -1 --pretty="%b") ]]; then
325+
git --no-pager log -1 --pretty="Who: %cn%nWhat: %s"
326+
else
327+
git --no-pager log -1 --pretty="Who: %cn%nWhat: %s%nDetails: %b"
328+
fi
323329
fi
324330
;;
325331

@@ -347,9 +353,9 @@ case $1 in
347353

348354
# requested the version?
349355
"version" | "v")
350-
echo "fpkg, version 3.0.0"
356+
echo "fpkg, version 3.0.1"
351357
echo "Written by ruby R53 (https://github.com/ruby-R53),"
352-
echo "September 2024"
358+
echo "February 2025."
353359
;;
354360

355361
# didn't even input a valid action or wants to know

0 commit comments

Comments
 (0)