chore: make it straightforward

This commit is contained in:
luc 2020-02-12 22:23:39 +08:00
parent c30a27a14d
commit 244cc1a89a
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ catch
endtry"
if [ $2 == "--all" ]; then
USERS=($(ls -l /home | awk '{if(NR>1)print $9}'))
USERS=($(ls /home))
for user in ${USERS[*]}; do
homepath=$(eval echo "~$user")
IFS=''