chore: make it straightforward
This commit is contained in:
parent
c30a27a14d
commit
244cc1a89a
|
|
@ -17,7 +17,7 @@ catch
|
||||||
endtry"
|
endtry"
|
||||||
|
|
||||||
if [ $2 == "--all" ]; then
|
if [ $2 == "--all" ]; then
|
||||||
USERS=($(ls -l /home | awk '{if(NR>1)print $9}'))
|
USERS=($(ls /home))
|
||||||
for user in ${USERS[*]}; do
|
for user in ${USERS[*]}; do
|
||||||
homepath=$(eval echo "~$user")
|
homepath=$(eval echo "~$user")
|
||||||
IFS=''
|
IFS=''
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue