Skip to content
Snippets Groups Projects
Commit a469501c authored by Bob Mottram's avatar Bob Mottram
Browse files

Use underscores

parent 45da08e2
No related branches found
No related tags found
No related merge requests found
...@@ -68,8 +68,8 @@ function remove_app { ...@@ -68,8 +68,8 @@ function remove_app {
if [ ! -f $REMOVED_APPS_FILE ]; then if [ ! -f $REMOVED_APPS_FILE ]; then
touch $REMOVED_APPS_FILE touch $REMOVED_APPS_FILE
fi fi
if ! grep -Fxq "-$app_name" $REMOVED_APPS_FILE; then if ! grep -Fxq "_${app_name}_" $REMOVED_APPS_FILE; then
echo "-$app_name" >> $REMOVED_APPS_FILE echo "_${app_name}_" >> $REMOVED_APPS_FILE
fi fi
} }
...@@ -81,7 +81,7 @@ function app_is_removed { ...@@ -81,7 +81,7 @@ function app_is_removed {
return return
fi fi
if ! grep -Fxq "-$app_name" $REMOVED_APPS_FILE; then if ! grep -Fxq "_${app_name}_" $REMOVED_APPS_FILE; then
echo "0" echo "0"
else else
echo "1" echo "1"
...@@ -95,7 +95,7 @@ function reinstall_app { ...@@ -95,7 +95,7 @@ function reinstall_app {
return return
fi fi
if [[ $(app_is_removed $app_name) == "1" ]]; then 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 fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment