Mkae api -> app_status() check if app exists

pull/928/head
Itai-Nelken 3 years ago
parent f8114159d2
commit d3120f9024
No known key found for this signature in database
GPG Key ID: E45E4E2C367B8AE6

1
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}"

Loading…
Cancel
Save