1
0
Fork 0
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:
Connor Olding 2019-05-27 11:24:26 +02:00
parent a48c026a31
commit 59503f55c1

View file

@ -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