Return exit code 127 if a command is not found
This commit is contained in:
parent
73a03ab205
commit
0277126699
@ -34,9 +34,12 @@ in
|
||||
# Retry the command if we just installed it.
|
||||
if [ $? = 126 ]; then
|
||||
"$@"
|
||||
else
|
||||
return 127
|
||||
fi
|
||||
else
|
||||
echo "$1: command not found" >&2
|
||||
return 127
|
||||
fi
|
||||
}
|
||||
'';
|
||||
|
Loading…
x
Reference in New Issue
Block a user