Skip to content

Commit

Permalink
sh does not understand == but = for comparisons
Browse files Browse the repository at this point in the history
Replaced == with = to allow proper installation with sh
  • Loading branch information
CedricGatay committed Apr 14, 2015
1 parent 10020b5 commit 2f6fed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Expand Up @@ -8,7 +8,7 @@ for file in `ls -1`; do
fi;
should_link=true
if [ -e $DEST_DIR/$current_name ]; then
if [ "$OVERWRITE_ALL" == "false" ]; then
if [ "$OVERWRITE_ALL" = "false" ]; then
should_link=false
read -p "Overwrite $current_name [ynaq]" ANSWER
case $ANSWER in
Expand All @@ -26,7 +26,7 @@ for file in `ls -1`; do
fi;

fi
if [ "$should_link" == "true" ]; then
if [ "$should_link" = "true" ]; then
ln -s -r -f $file $DEST_DIR/$current_name
echo "Linking $current_name"
fi
Expand Down

0 comments on commit 2f6fed9

Please sign in to comment.