Skip to content

Commit 9bebcf0

Browse files
author
ggtrd
committed
--get-logs option correction
1 parent 9191676 commit 9bebcf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bashpack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,6 @@ case "$1" in
494494
-i|--self-install) install_cli ;;
495495
-u|--self-update) update_cli ;; # Critical option, see the comments at function declaration for more info
496496
--self-delete) delete_all ;;
497-
--get-logs) $COMMAND_SYSTEMD_LOGS ;;
498497
man) $COMMAND_MAN ;;
499498
update)
500499
if [[ -z "$2" ]]; then
@@ -505,6 +504,7 @@ case "$1" in
505504
-y|--assume-yes) export install_confirmation="yes" && exec $COMMAND_UPDATE ;;
506505
--ask) read -p "Do you want to automatically accept installations during the process? [y/N] " install_confirmation && export install_confirmation && exec $COMMAND_UPDATE ;;
507506
--when) $COMMAND_SYSTEMD_STATUS | grep Trigger: | awk '$1=$1' ;;
507+
--get-logs) $COMMAND_SYSTEMD_LOGS ;;
508508
*) echo "Error: unknown [update] option '$2'."$'\n'"$USAGE" && exit ;;
509509
esac
510510
# done

0 commit comments

Comments
 (0)