From d3120f90243737546ecbe4e409a13b241b4d020f Mon Sep 17 00:00:00 2001 From: Itai-Nelken Date: Sun, 22 Aug 2021 11:01:42 +0300 Subject: [PATCH] Mkae api -> app_status() check if app exists --- api | 1 + 1 file changed, 1 insertion(+) diff --git a/api b/api index f59c76b..e92cfea 100755 --- a/api +++ b/api @@ -264,6 +264,7 @@ script_name_cpu() { #get script name to run based on detected CPU arch app_status() { #Gets the $1 app's current status. installed, uninstalled, corrupted, disabled [ -z "$1" ] && error 'app_status(): requires an argument.' + [ ! -d "$DIRECTORY/apps/$1" ] && error "app_status(): app doesn't exist!" #check if app exists if [ -f "${DIRECTORY}/data/status/${1}" ];then cat "${DIRECTORY}/data/status/${1}"