Skip to content

Commit

Permalink
fixed silent install check. more consistent stash log.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Balibrera committed Sep 16, 2013
1 parent 72accd2 commit 84831ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/env bash

install_type=""
is_silent=0
while [ $# -gt 0 ]; do
case $1 in
--basic) install_type="basic"; shift 1 ;;
--silent) is_silent=1; shift 1 ;;
*) shift 1 ;;
esac
done
Expand Down Expand Up @@ -70,7 +72,7 @@ fi
# Prompt for global install early to avoid error: 0 problem
SYSTEM_WIDE_INSTALL=false

if [[ "$1" != "--silent" ]]; then
if [[ $is_silent != 1 ]]; then
if [[ `uname` != MINGW32* ]]; then
read -p "Would you like to install the Game Closure DevKit system-wide in /usr/local/bin [Y/n] ?" -n 1 -r
echo
Expand Down Expand Up @@ -130,7 +132,7 @@ echo
node bin/checkSymlinks
node src/dependencyCheck.js $install_type

if [[ "$1" != "--silent" ]]; then
if [[ $is_silent != 1 ]]; then
node src/analytics.js

CURRENT_BASIL_PATH=$(which basil)
Expand Down
2 changes: 1 addition & 1 deletion src/update/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ exports.update = function (tag, next) {
}
}, function (err, data) {
if (!err && data) {
console.log("Save the changes to", stashDir);
console.log("Saving the changes to", stashDir);
fs.writeFile(path.join(stashDir, 'stash_'+(+new Date())), String(data), f.wait());
}
console.log("Checking out version", tag.toString());
Expand Down

0 comments on commit 84831ae

Please sign in to comment.