fix: shell
This commit is contained in:
parent
11d5c2f3e2
commit
0e0bdb4aef
1 changed files with 2 additions and 2 deletions
4
dot
4
dot
|
@ -19,8 +19,8 @@ include() {
|
|||
func() {
|
||||
if is_function $(echo "super_$2"); then
|
||||
[ "${DO_SUDO:-yes}" = "yes" ] || return 0
|
||||
cmd="sh -c \". $1 && super_$2\""
|
||||
[ "$(id -u)" = "0" ] && $cmd || sudo $cmd
|
||||
cmd=". $1 && super_$2"
|
||||
[ "$(id -u)" = "0" ] && sh -c "$cmd" || sudo sh -c "$cmd"
|
||||
fi
|
||||
is_function $2 && $2
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue