diff --git a/dot b/dot index 398ca9f..ed8b427 100755 --- a/dot +++ b/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 }