mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Update
This commit is contained in:
+5
-5
@@ -25,13 +25,13 @@ echo_stderr() {
|
|||||||
command_exists() {
|
command_exists() {
|
||||||
_PATH="$PATH"
|
_PATH="$PATH"
|
||||||
PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
|
PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
|
||||||
code=1
|
set +e
|
||||||
if command -v "$@" >/dev/null 2>&1; then
|
command -v "$@" >/dev/null 2>&1
|
||||||
code=0
|
command_exit_status=$?
|
||||||
fi
|
set -e
|
||||||
PATH="$_PATH"
|
PATH="$_PATH"
|
||||||
unset _PATH
|
unset _PATH
|
||||||
return $code
|
return $command_exit_status
|
||||||
}
|
}
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
|
|||||||
Reference in New Issue
Block a user