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.
|
# Retry the command if we just installed it.
|
||||||
if [ $? = 126 ]; then
|
if [ $? = 126 ]; then
|
||||||
"$@"
|
"$@"
|
||||||
|
else
|
||||||
|
return 127
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "$1: command not found" >&2
|
echo "$1: command not found" >&2
|
||||||
|
return 127
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user