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