fix 2 logic errors in pi-apps install script

pull/532/head
Botspot 5 years ago
parent 941537b371
commit bdfda82c83

@ -122,7 +122,7 @@ cd $HOME
"${DIRECTORY}/etc/categoryedit" "template" 'hidden' >/dev/null "${DIRECTORY}/etc/categoryedit" "template" 'hidden' >/dev/null
#hide duplicates if running in twisteros #hide duplicates if running in twisteros
if [ -f /usr/local/bin/twistver ] && if [[ $(twistver) == "Twister OS version"* ]]; then if [ -f /usr/local/bin/twistver ] && [[ $(twistver) == "Twister OS version"* ]]; then
#twisteros full #twisteros full
PREIFS="$IFS" PREIFS="$IFS"
IFS=$'\n' IFS=$'\n'
@ -147,7 +147,7 @@ Mac OS Theme"
echo "Finished hiding apps on TwisterOS." echo "Finished hiding apps on TwisterOS."
elif [ -f /usr/local/bin/twistver ] && if [[ $(twistver) != "Twister OS version"* ]]; then elif [ -f /usr/local/bin/twistver ] && [[ $(twistver) != "Twister OS version"* ]]; then
#twisteros lite #twisteros lite
PREIFS="$IFS" PREIFS="$IFS"
IFS=$'\n' IFS=$'\n'
@ -160,6 +160,7 @@ Mac OS Theme"
for app in $apps ;do for app in $apps ;do
"${DIRECTORY}/etc/categoryedit" "$app" 'hidden' >/dev/null "${DIRECTORY}/etc/categoryedit" "$app" 'hidden' >/dev/null
done done
IFS="$PREIFS"
#unhide some apps on twisteros lite that were hidden. #unhide some apps on twisteros lite that were hidden.
#This moves these apps to the '' category, which will be reset next time pi-apps launches #This moves these apps to the '' category, which will be reset next time pi-apps launches

Loading…
Cancel
Save