1
0
Fork 0
mirror of synced 2024-11-17 06:25:35 -05:00

chore: make it straightforward (#562)

Co-authored-by: luc <814640709@qq.com>
This commit is contained in:
Ma Chao 2020-04-16 10:47:00 +08:00 committed by GitHub
parent d98c510eee
commit 31256d6be6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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=''