Skip to content

Commit

Permalink
try jot when seq not available
Browse files Browse the repository at this point in the history
  • Loading branch information
bydo authored and radare committed Nov 5, 2015
1 parent f137c8e commit a18d8cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ if [ -z "$*" ]; then
else
if [ $# -gt 1 ]; then
par=""
for p in `seq 1 $(($#-1))`; do par=$par"\$$p "; done
if command -v seq >/dev/null; then
for p in `seq 1 $(($#-1))`; do par=$par"\$$p "; done
elif
command -v jot >/dev/null; then
for p in `jot $(($#-1)) 1`; do par=$par"\$$p "; done
fi
eval $new_env $par "\"\$$#\""
else
eval $new_env $*
Expand Down

0 comments on commit a18d8cc

Please sign in to comment.