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:
parent
5272288a75
commit
e627d7d22a
1 changed files with 1 additions and 1 deletions
2
install
2
install
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue