Skip to content

Commit

Permalink
Handle relative paths in env.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Aug 13, 2015
1 parent 8293f75 commit 1842142
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions env.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/sh

pfx="$1"
if [ "`echo $pfx | cut -c 1`" != / ]; then
pfx="$PWD/$pfx"
fi

if [ -z "$pfx" ]; then
echo "Usage: ./env.sh [destdir|prefix] [program]"
exit 1
Expand Down

0 comments on commit 1842142

Please sign in to comment.