Return exit code 127 if a command is not found
This commit is contained in:
parent
73a03ab205
commit
0277126699
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue