Skip to content

Commit

Permalink
Update soga.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxilu authored Sep 14, 2024
1 parent 36510d9 commit 30bc5c6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions soga.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ disable() {
}

show_log() {
journalctl -u soga.service -e --no-pager -f
n="$2"
if [[ $2 == "" ]]; then
n="1000"
fi
journalctl -u soga.service -e --no-pager -f -n "${n}"
if [[ $# == 0 ]]; then
before_show_menu
fi
Expand Down Expand Up @@ -413,7 +417,7 @@ if [[ $# > 0 ]]; then
;;
"disable") check_install 0 && disable 0
;;
"log") check_install 0 && show_log 0
"log") check_install 0 && show_log 0 $2
;;
"update") check_install 0 && update 0 $2
;;
Expand Down

0 comments on commit 30bc5c6

Please sign in to comment.