Use underscores

This commit is contained in:
Bob Mottram 2016-10-01 10:08:36 +01:00
parent 45da08e2e3
commit a469501c7e
1 changed files with 4 additions and 4 deletions

View File

@ -68,8 +68,8 @@ function remove_app {
if [ ! -f $REMOVED_APPS_FILE ]; then
touch $REMOVED_APPS_FILE
fi
if ! grep -Fxq "-$app_name" $REMOVED_APPS_FILE; then
echo "-$app_name" >> $REMOVED_APPS_FILE
if ! grep -Fxq "_${app_name}_" $REMOVED_APPS_FILE; then
echo "_${app_name}_" >> $REMOVED_APPS_FILE
fi
}
@ -81,7 +81,7 @@ function app_is_removed {
return
fi
if ! grep -Fxq "-$app_name" $REMOVED_APPS_FILE; then
if ! grep -Fxq "_${app_name}_" $REMOVED_APPS_FILE; then
echo "0"
else
echo "1"
@ -95,7 +95,7 @@ function reinstall_app {
return
fi
if [[ $(app_is_removed $app_name) == "1" ]]; then
sed -i "/-${app_name}/d" $REMOVED_APPS_FILE
sed -i "/_${app_name}_/d" $REMOVED_APPS_FILE
fi
}