scripts src/scripts: Clean up inconsistent shell variable quoting
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 3 Sep 2017 08:37:11 +0000 (10:37 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 3 Sep 2017 08:37:11 +0000 (10:37 +0200)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/savecore
src/scripts/gen-client-configure
src/scripts/tarball

index becd752..6594d90 100755 (executable)
@@ -65,8 +65,8 @@ saved_core=$core_dir/core-$tstamp
 
 mkdir -p $core_dir
 if [ `df -kP $core_dir | awk 'NR!=1 { print $4 }'` -lt "$space_low" ]
-then rm -f $core_name; exit
+then rm -f "$core_name"; exit
 fi
 
-mv -f $core_name $saved_core
+mv -f "$core_name" $saved_core
 saved=y
index 952b7a0..eb6bba5 100755 (executable)
@@ -5,8 +5,8 @@ if [ $# = 0 ]; then
     exit 1
 fi
 
-cd $1-$2
-printf "%s" $2 >.tarball-version
+cd "$1-$2"
+printf "%s" "$2" >.tarball-version
 cat m4/*.m4 >aclocal.m4
 autoconf
 autoheader
index 64a13ef..b356975 100755 (executable)
@@ -27,7 +27,7 @@ else usage; exit 1
 fi
 
 nv=$name-$version
-mkdir $nv
+mkdir "$nv"
 
 # arrange cleanup
 trap 'rm -rf "$nv"' 0
@@ -47,4 +47,4 @@ done
 
 $script $name $version
 
-tar -czf $nv.tar.gz --owner=0 --group=0 --mode=ug+w,a+rX $nv
+tar -czf "$nv".tar.gz --owner=0 --group=0 --mode=ug+w,a+rX "$nv"