mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-08 10:00:31 +08:00
bug fix (Thu Jan 5 22:58:40 CST 2023)
This commit is contained in:
parent
a9132b15ad
commit
d628b90fa9
@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
DFS_USER=$(whoami)
|
||||
ARG=""
|
||||
GOT_OPTS=()
|
||||
while [[ $# > 0 || -n "$ARG" ]]; do
|
||||
@ -33,7 +32,7 @@ while [[ $# > 0 || -n "$ARG" ]]; do
|
||||
done
|
||||
|
||||
# install
|
||||
if command -v su 1>/dev/null; then
|
||||
if command -v su 1>/dev/null || test -n "$DFS_USER"; then
|
||||
SUCMD="su $DFS_USER"
|
||||
else
|
||||
SUCMD="bash"
|
||||
|
Loading…
x
Reference in New Issue
Block a user