Skip to content

Commit

Permalink
share, ghc-pkg: use hostname, not HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Aug 19, 2013
1 parent 7f69925 commit e1a9247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ghc-pkg
Expand Up @@ -68,7 +68,7 @@ case "$1" in

$0 reset || exit $?

if [[ $HOST == 'blue' ]]; then
if [[ $(hostname) == 'blue' ]]; then
cabal install "$@" "${all_pkgs[@]}"
else
cabal install "$@" "${basic_pkgs[@]}"
Expand Down
2 changes: 1 addition & 1 deletion share
Expand Up @@ -9,7 +9,7 @@ file=$(readlink -f "$1")
base=$(basename "$file")
share='Site/files'

if [[ "$HOST" == 'blue' ]]; then
if [[ $(hostname) == 'blue' ]]; then
cp -v "$file" "$HOME/$share/$prefix$base"
else
scp "$file" "pbrisbin.com:~/$share/$prefix$base"
Expand Down

0 comments on commit e1a9247

Please sign in to comment.