修复centos -x兼容性

This commit is contained in:
whyour
2021-11-07 21:53:16 +08:00
parent 62596f27ef
commit bd6d711212
6 changed files with 43 additions and 43 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