Skip to content

Commit

Permalink
make env.sh work in dash
Browse files Browse the repository at this point in the history
  • Loading branch information
crowell committed Aug 22, 2015
1 parent cc5ae7f commit 9d19e29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions env.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#!/bin/bash

function getabsolutepath(){
getabsolutepath() {
[ -d "$1" ] && { cd "$1"; echo "$(pwd -P)"; } ||
{ cd "$(dirname "$1")"; echo "$(pwd -P)/$(basename "$1")"; }
}
Expand Down

0 comments on commit 9d19e29

Please sign in to comment.