Browse code

Fixing space issues between " and ]

When we are using '[' aka. ``test`` , before the closing ']'
we need to use a space.

Otherwise the commands return with '2' so the "expression" will be a constant
false.

Change-Id: I673762e802c28335e03390b6608cf6bbee6aaba6

Attila Fazekas authored on 2013/11/06 23:41:04
Showing 2 changed files
... ...
@@ -1266,7 +1266,7 @@ function setup_develop() {
1266 1266
     # where we really really want the overridden version to stick. So provide
1267 1267
     # a variable that tells us whether or not we should UNDO the requirements
1268 1268
     # changes (this will be set to False in the OpenStack ci gate)
1269
-    if [ $UNDO_REQUIREMENTS = "True"]; then
1269
+    if [ $UNDO_REQUIREMENTS = "True" ]; then
1270 1270
         if [ $update_requirements -eq 0 ]; then
1271 1271
             (cd $project_dir && git reset --hard)
1272 1272
         fi
... ...
@@ -22,7 +22,7 @@ cleanup() {
22 22
         umount $MNTDIR
23 23
         rmdir $MNTDIR
24 24
     fi
25
-    if [ -n "$DEV_FILE_TMP" -a -e "$DEV_FILE_TMP "]; then
25
+    if [ -n "$DEV_FILE_TMP" -a -e "$DEV_FILE_TMP" ]; then
26 26
         rm -f $DEV_FILE_TMP
27 27
     fi
28 28
     if [ -n "$IMG_FILE_TMP" -a -e "$IMG_FILE_TMP" ]; then