Permalink
Browse files

Bash test(1) does not allow bare numbers with ==, so use -eq

  • Loading branch information...
1 parent 0f0468f commit 6be137e5b76c6a8472e311a69743a403adc757f5 @Abhayakara Abhayakara committed May 22, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 makefiles/installsh
View
@@ -61,7 +61,7 @@ while ${TRUE} ; do
for file in $files ; do
destfile=$dest
if [ -d $destfile ] ; then destfile=$destfile/`basename $file` ; fi
- if [ $ifdiff == 1 ] && cmp -s $file $destfile || cp -f -p $file $destfile ; then
+ if [ $ifdiff -eq 1 ] && cmp -s $file $destfile || cp -f -p $file $destfile ; then
if [ "$owner" != "" ] ; then chown $owner $destfile ; fi
if [ "$group" != "" ] ; then chgrp $group $destfile ; fi
if [ "$mode" != "" ] ; then chmod $mode $destfile ; fi

0 comments on commit 6be137e

Please sign in to comment.