回退shell [

This commit is contained in:
whyour
2021-11-07 19:18:36 +08:00
parent 1b88853a8d
commit 62596f27ef
6 changed files with 44 additions and 44 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ remove_js_log() {
remove_empty_dir() {
cd $dir_log
for dir in $(ls); do
if [[ -d $dir ]] && [[ -z $(ls $dir) ]]; then
if [ -d $dir ] && [[ -z $(ls $dir) ]]; then
rm -rf $dir
fi
done