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
This commit is contained in:
parent
aa50a13135
commit
237225dd39
@ -1266,7 +1266,7 @@ function setup_develop() {
|
|||||||
# where we really really want the overridden version to stick. So provide
|
# where we really really want the overridden version to stick. So provide
|
||||||
# a variable that tells us whether or not we should UNDO the requirements
|
# a variable that tells us whether or not we should UNDO the requirements
|
||||||
# changes (this will be set to False in the OpenStack ci gate)
|
# changes (this will be set to False in the OpenStack ci gate)
|
||||||
if [ $UNDO_REQUIREMENTS = "True"]; then
|
if [ $UNDO_REQUIREMENTS = "True" ]; then
|
||||||
if [ $update_requirements -eq 0 ]; then
|
if [ $update_requirements -eq 0 ]; then
|
||||||
(cd $project_dir && git reset --hard)
|
(cd $project_dir && git reset --hard)
|
||||||
fi
|
fi
|
||||||
|
@ -22,7 +22,7 @@ cleanup() {
|
|||||||
umount $MNTDIR
|
umount $MNTDIR
|
||||||
rmdir $MNTDIR
|
rmdir $MNTDIR
|
||||||
fi
|
fi
|
||||||
if [ -n "$DEV_FILE_TMP" -a -e "$DEV_FILE_TMP "]; then
|
if [ -n "$DEV_FILE_TMP" -a -e "$DEV_FILE_TMP" ]; then
|
||||||
rm -f $DEV_FILE_TMP
|
rm -f $DEV_FILE_TMP
|
||||||
fi
|
fi
|
||||||
if [ -n "$IMG_FILE_TMP" -a -e "$IMG_FILE_TMP" ]; then
|
if [ -n "$IMG_FILE_TMP" -a -e "$IMG_FILE_TMP" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user