1
0
mirror of https://github.com/limosek/zaf.git synced 2025-11-01 18:17:37 +01:00

Missed zaf_which

This commit is contained in:
Lukas Macura
2016-11-21 17:05:13 +01:00
parent f72488708b
commit b80fd5ce7f
2 changed files with 12 additions and 1 deletions

View File

@@ -266,7 +266,7 @@ zaf_random() {
# Emulate sudo
zaf_sudo() {
if zaf_is_root || ! which sudo >/dev/null 2>/dev/null; then
if zaf_is_root || ! zaf_which sudo >/dev/null 2>/dev/null; then
$@
else
sudo $@