Skip to content

Commit

Permalink
Update iojs-install.sh
Browse files Browse the repository at this point in the history
Correct download dir when run not in script dir.
  • Loading branch information
wgqi1126 committed Jun 15, 2015
1 parent cec3968 commit dd25f6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iojs-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ rm ./iojs-updater.html

echo "Done"

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
DIR=$( cd "$( dirname $0 )" && pwd )

echo "Downloading latest stable Version $VER..."
{
wget https://iojs.org/dist/latest/$VER
wget https://iojs.org/dist/latest/$VER -O $DIR/$VER
} &> /dev/null

echo "Done"
Expand Down

0 comments on commit dd25f6c

Please sign in to comment.