From 95995dd7339d36ff8e5775dea716be56fbd8797b Mon Sep 17 00:00:00 2001 From: Idan Cohen Date: Mon, 14 Mar 2022 07:51:17 +0200 Subject: [PATCH] refactor: :recycle: when finish remove all json files only --- npm-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/npm-install.sh b/npm-install.sh index b78cea7..b7c3fe5 100755 --- a/npm-install.sh +++ b/npm-install.sh @@ -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