From 1c1f38c7b4e0e2b542f3896b39c98b9ce298181e Mon Sep 17 00:00:00 2001 From: Geoff Murphy Date: Tue, 13 May 2025 14:59:13 +1000 Subject: [PATCH] :bug: Fixed lsblk dependency and added upgrade command to manager --- fake-os.sh | 1 + src/fake_manager.sh | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fake-os.sh b/fake-os.sh index 4287467..070c9bc 100644 --- a/fake-os.sh +++ b/fake-os.sh @@ -47,6 +47,7 @@ FAKE_DEP="" if [ ! "$(command -v git)" ]; then FAKE_DEP="$FAKE_DEP git"; fi if [ ! "$(command -v curl)" ]; then FAKE_DEP="$FAKE_DEP curl"; fi if [ ! "$(command -v figlet)" ]; then FAKE_DEP="$FAKE_DEP figlet"; fi +if [ ! "$(command -v lsblk)" ]; then FAKE_DEP="$FAKE_DEP lsblk"; fi if [ ! "$(command -v rsync)" ]; then FAKE_DEP="$FAKE_DEP rsync"; fi if [ ! "$(command -v sudo)" ]; then FAKE_DEP="$FAKE_DEP sudo"; fi if [ ! "$(command -v vim)" ]; then FAKE_DEP="$FAKE_DEP vim"; fi diff --git a/src/fake_manager.sh b/src/fake_manager.sh index 588f78c..705cb36 100644 --- a/src/fake_manager.sh +++ b/src/fake_manager.sh @@ -246,12 +246,13 @@ elif [ "$1" == "search" ]; then _fake_search "$VARS" elif [ "$1" == "start" ]; then _fake_start "$VARS" elif [ "$1" == "stop" ]; then _fake_stop "$VARS" elif [ "$1" == "restart" ]; then _fake_restart "$VARS" -elif [ "$1" == "status" ]; then _fake_restart "$VARS" +elif [ "$1" == "status" ]; then _fake_status "$VARS" elif [ "$1" == "enable" ]; then _fake_enable "$VARS" elif [ "$1" == "disable" ]; then _fake_disable "$VARS" #--------[ Other Commands ]--------# -elif [ "$1" == "flush" ]; then _fake_flush -elif [ "$1" == "help" ]; then _fake_help +elif [ "$1" == "flush" ]; then _fake_flush +elif [ "$1" == "upgrade" ]; then _fake_upgrade +elif [ "$1" == "help" ]; then _fake_help #--------[ Error Catching ]--------# else echo ""