Skip to content

Commit

Permalink
Update soga.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxilu committed Dec 18, 2020
1 parent f57c7a3 commit c17316d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion soga.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ update() {
fi
}

config() {
soga-tool $*
}

uninstall() {
confirm "确定要卸载 soga 吗?" "n"
if [[ $? != 0 ]]; then
Expand Down Expand Up @@ -228,7 +232,7 @@ disable() {
}

show_log() {
journalctl -u soga.service -e --no-pager
journalctl -u soga.service -e --no-pager -f
if [[ $# == 0 ]]; then
before_show_menu
fi
Expand Down Expand Up @@ -438,6 +442,8 @@ if [[ $# > 0 ]]; then
;;
"update") check_install 0 && update 0 $2
;;
"config") config $*
;;
"install") check_uninstall 0 && install 0
;;
"uninstall") check_install 0 && uninstall 0
Expand Down

0 comments on commit c17316d

Please sign in to comment.