Browse Source

Use underscores

Bob Mottram 8 years ago
parent
commit
a469501c7e
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/freedombone-utils-selector

+ 4
- 4
src/freedombone-utils-selector View File

@@ -68,8 +68,8 @@ function remove_app {
68 68
     if [ ! -f $REMOVED_APPS_FILE ]; then
69 69
         touch $REMOVED_APPS_FILE
70 70
     fi
71
-    if ! grep -Fxq "-$app_name" $REMOVED_APPS_FILE; then
72
-        echo "-$app_name" >> $REMOVED_APPS_FILE
71
+    if ! grep -Fxq "_${app_name}_" $REMOVED_APPS_FILE; then
72
+        echo "_${app_name}_" >> $REMOVED_APPS_FILE
73 73
     fi
74 74
 }
75 75
 
@@ -81,7 +81,7 @@ function app_is_removed {
81 81
         return
82 82
     fi
83 83
 
84
-    if ! grep -Fxq "-$app_name" $REMOVED_APPS_FILE; then
84
+    if ! grep -Fxq "_${app_name}_" $REMOVED_APPS_FILE; then
85 85
         echo "0"
86 86
     else
87 87
         echo "1"
@@ -95,7 +95,7 @@ function reinstall_app {
95 95
         return
96 96
     fi
97 97
     if [[ $(app_is_removed $app_name) == "1" ]]; then
98
-        sed -i "/-${app_name}/d" $REMOVED_APPS_FILE
98
+        sed -i "/_${app_name}_/d" $REMOVED_APPS_FILE
99 99
     fi
100 100
 }
101 101