mirror of
https://github.com/notwa/rc
synced 2024-11-05 04:39:03 -08:00
use rmdir for empty directories
This commit is contained in:
parent
a48c026a31
commit
59503f55c1
1 changed files with 1 additions and 1 deletions
2
install
2
install
|
@ -121,7 +121,7 @@ grep .bashrc .bash_profile >/dev/null 2>&1 \
|
|||
|
||||
for d in Desktop Documents Downloads Music Pictures Public Templates Video Videos; do
|
||||
[ -d "$d" ] || continue
|
||||
is_empty "$d" && rm -r "$d" || note "skipping unempty $d"
|
||||
is_empty "$d" && rmdir "$d" || note "skipping unempty $d"
|
||||
done
|
||||
|
||||
mkdir -p opt/local/bin src work play
|
||||
|
|
Loading…
Reference in a new issue