refactor: ♻️ when finish remove all json files only
This commit is contained in:
@@ -56,8 +56,8 @@ publish_all_packages() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_all_local_packages_and_json() {
|
remove_all_json_files() {
|
||||||
rm *.tgz *.json
|
rm *.json
|
||||||
}
|
}
|
||||||
|
|
||||||
echo_npm_registry() {
|
echo_npm_registry() {
|
||||||
@@ -72,7 +72,7 @@ main() {
|
|||||||
download_all_package ${urls_packages[@]}
|
download_all_package ${urls_packages[@]}
|
||||||
elif [[ $# -eq 2 ]]; then
|
elif [[ $# -eq 2 ]]; then
|
||||||
publish_all_packages $@
|
publish_all_packages $@
|
||||||
remove_all_local_packages_and_json
|
remove_all_json_files
|
||||||
else
|
else
|
||||||
print_help
|
print_help
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user