diff --git a/tools/builder.sh b/tools/builder.sh index f50635c..99ce86e 100755 --- a/tools/builder.sh +++ b/tools/builder.sh @@ -191,8 +191,8 @@ build () { echo " [+] Clean last build data" #make clean rm -rf "$IMAGEBUILDER_FOLDER/tmp/" - rm -rf "$IMAGEBUILDER_FOLDER/build_dir/target-*/root*" - rm -rf "$IMAGEBUILDER_FOLDER/build_dir/target-*/json_*" + rm -rf "$IMAGEBUILDER_FOLDER/build_dir"/target-*/root* + rm -rf "$IMAGEBUILDER_FOLDER/build_dir"/target-*/json_* rm -rf "$IMAGEBUILDER_FOLDER/bin/targets/*" # set selected packages