diff --git a/build/tests/CustomSystemUpdater/work/cls.sh b/build/tests/CustomSystemUpdater/work/cls.sh index 6ce0e27f..93509668 100755 --- a/build/tests/CustomSystemUpdater/work/cls.sh +++ b/build/tests/CustomSystemUpdater/work/cls.sh @@ -20,7 +20,7 @@ move_data_to_tmp() { tmp=tmp/$1 install -d $tmp - for src in `find $1 -name v*` + for src in `find $1 -name v* -type d` do mv $src $tmp done @@ -28,7 +28,7 @@ move_data_to_tmp() { do_cls() { tmp=tmp/$1 - for target in `find $tmp -name v*` + for target in `find $tmp -name v* -type d | sort -t "v" -g -k 2` do cp -rp $target $1 echo "$target" @@ -43,4 +43,5 @@ do do_cls $name done + rm -rf tmp