mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Update
This commit is contained in:
+4
-4
@@ -18,6 +18,10 @@
|
||||
|
||||
set -e
|
||||
|
||||
command_exists() {
|
||||
$sudo command -v "$@" > /dev/null 2>&1
|
||||
}
|
||||
|
||||
user="$(id -un 2>/dev/null || true)"
|
||||
|
||||
sudo=''
|
||||
@@ -29,10 +33,6 @@ if [ "$user" != 'root' ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
command_exists() {
|
||||
$sudo command -v "$@" > /dev/null 2>&1
|
||||
}
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case $1 in
|
||||
--template)
|
||||
|
||||
Reference in New Issue
Block a user