Skip to content

Commit

Permalink
[fix] dissemination/spawn.sh: bash equal is = and not ==
Browse files Browse the repository at this point in the history
  • Loading branch information
OpaOnWindowsNow committed Feb 9, 2012
1 parent a62bfa3 commit 37437ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dissemination/spawn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ copy_host () (
echo "echo \"Uploading $src\"" >> ${fifos[id]}
hostname=$(echo "$(uname -n)" | tr '[:upper:]' '[:lower:]')
if [ ! "$DEBUG" = "0" ] ; then echo "echo \"= Copying $src -> $dst on $hostname\"" >> ${fifos[id]}; fi
if [ ${HOSTS[id]} == "localhost" ] || [ ${HOSTS[id]} == "127.0.0.1" ] || [ ${HOSTS[id]} == $hostname ] || [ ${HOSTS[id]} == $hostname".local" ] ; then
if [ ${HOSTS[id]} = "localhost" ] || [ ${HOSTS[id]} = "127.0.0.1" ] || [ ${HOSTS[id]} = $hostname ] || [ ${HOSTS[id]} = $hostname".local" ] ; then
# In case it hasn't been done yet, we create the tmp dir.
mkdir -p $(dirname $dst)
cp $src "$dst"
Expand Down

0 comments on commit 37437ff

Please sign in to comment.