1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 04:39:03 -08:00

revert change from rm -r to rmdir

rationale: is_empty searches the directory for actual files,
whereas rmdir checks for directories too, so rmdir could fail.
This commit is contained in:
Connor Olding 2019-06-05 16:11:10 -07:00
parent 5272288a75
commit e627d7d22a

View file

@ -138,7 +138,7 @@ fi
for d in Desktop Documents Downloads Music Pictures Public Templates Video Videos; do
[ -d "$d" ] || continue
is_empty "$d" && rmdir "$d" || note "skipping unempty $d"
is_empty "$d" && rm -r "$d" || note "skipping unempty $d"
done
mkdir -p opt/local/bin src work play