Merge pull request #928 from Botspot/app_status-update

api -> app_status(): check if app provided exists
pull/931/head
Botspot 3 years ago committed by GitHub
commit a86ede6533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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