diff --git a/tools/get.dotfiles.cn b/tools/get.dotfiles.cn index 39293a3..a95cbf8 100644 --- a/tools/get.dotfiles.cn +++ b/tools/get.dotfiles.cn @@ -32,7 +32,7 @@ while [[ $# > 0 || -n "$ARG" ]]; do done # install -if command -v su 1>/dev/null || test -n "$DFS_USER"; then +if command -v su 1>/dev/null && test -n "$DFS_USER"; then SUCMD="su $DFS_USER" else SUCMD="bash"