@@ -129,14 +129,15 @@ case $1 in
129
129
# check if we got more than one item
130
130
# to install as well
131
131
132
- for (( item = 0 ; item <= $# ; item++ )) ; do
132
+ ITEMS=$(( $# - 2 ))
133
+ for (( ITEM = 0 ; ITEM <= $ITEMS ; ITEM++ )) ; do
133
134
exist_check $2
134
135
write_check
135
136
136
137
cd $FPKG_ROOT /$2
137
138
138
139
# change window title too so that the user
139
- # knows it's running
140
+ # knows it's still running
140
141
echo -en ' \e]0;fpkg: building...\a'
141
142
142
143
# check if the installation requires
@@ -148,7 +149,8 @@ case $1 in
148
149
149
150
if [[ $FPKG_LOG && $LOG_FMT ]]; then
150
151
# 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
152
154
[[ ! -d $FPKG_LOG ]] && mkdir $FPKG_LOG
153
155
154
156
# $LOG_FMT gets expanded here for creating the file
@@ -319,7 +321,11 @@ case $1 in
319
321
if [[ $1 = " -d" ]]; then
320
322
git show
321
323
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
323
329
fi
324
330
;;
325
331
@@ -347,9 +353,9 @@ case $1 in
347
353
348
354
# requested the version?
349
355
" version" | " v" )
350
- echo " fpkg, version 3.0.0 "
356
+ echo " fpkg, version 3.0.1 "
351
357
echo " Written by ruby R53 (https://github.com/ruby-R53),"
352
- echo " September 2024 "
358
+ echo " February 2025. "
353
359
;;
354
360
355
361
# didn't even input a valid action or wants to know
0 commit comments