mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 02:23:58 +00:00
try jot when seq not available
This commit is contained in:
parent
f137c8e460
commit
a18d8cc08f
7
env.sh
7
env.sh
@ -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 $*
|
||||
|
Loading…
Reference in New Issue
Block a user