From 89236c6f0813c6b8c8f11d1fa149662654353712 Mon Sep 17 00:00:00 2001 From: Alex Martian Date: Thu, 27 Jun 2024 04:21:20 +0000 Subject: [PATCH] fix typo in one script information output by changing hardcoded script name with variable parameter --- apt_get.sh | 2 +- apt_sources_replace.sh | 2 +- apt_sources_restore.sh | 2 +- download_debs.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apt_get.sh b/apt_get.sh index 936809c..6bb0e0e 100755 --- a/apt_get.sh +++ b/apt_get.sh @@ -55,7 +55,7 @@ if [ -e "${commons_path}" ] ; then If dpkg status and/or apt sources not found at supplied location, substitution not done.\n" display_help "$help_message$common_help" else - if [ "x$1" = "xinstall" ] ; then echo "apt_get not going to be installed due to not locating common_arguments_to_scripts.sh"; exit 1; fi + if [ "x$1" = "xinstall" ] ; then echo "$(basename $(realpath ${0})) is not going to be installed due to not locating common_arguments_to_scripts.sh"; exit 1; fi fi # ===== # diff --git a/apt_sources_replace.sh b/apt_sources_replace.sh index 5f80af8..d1df083 100755 --- a/apt_sources_replace.sh +++ b/apt_sources_replace.sh @@ -19,7 +19,7 @@ if [ -e "${commons_path}" ] ; then help_message=" The Script is written to update apt sources to set of packages from the location: ${debian_archives} or from path given as argument to the script\n" display_help "$help_message$common_help" else - if [ "x$1" = "xinstall" ] ; then echo "apt_get not going to be installed due to not locating common_arguments_to_scripts.sh"; exit 1; fi + if [ "x$1" = "xinstall" ] ; then echo "$(basename $(realpath ${0})) is not going to be installed due to not locating common_arguments_to_scripts.sh"; exit 1; fi fi # ===== # diff --git a/apt_sources_restore.sh b/apt_sources_restore.sh index 5c9ae65..6d5138b 100755 --- a/apt_sources_restore.sh +++ b/apt_sources_restore.sh @@ -12,7 +12,7 @@ if [ -e "${commons_path}" ] ; then help_message=" The Script is written to restore apt sources if previously replaced by counterpart of this script (apt_sources_replace.sh)\n" display_help "$help_message$common_help" else - if [ "x$1" = "xinstall" ] ; then echo "apt_get not going to be installed due to not locating common_arguments_to_scripts.sh"; exit 1; fi + if [ "x$1" = "xinstall" ] ; then echo "$(basename $(realpath ${0})) is not going to be installed due to not locating common_arguments_to_scripts.sh"; exit 1; fi fi # ===== # diff --git a/download_debs.sh b/download_debs.sh index 0bd4266..5963050 100755 --- a/download_debs.sh +++ b/download_debs.sh @@ -22,7 +22,7 @@ if [ -e "${commons_path}" ] ; then If called w/out any parameters, default location is used : '${packages_to_install}'\n" display_help "$help_message$common_help" else - if [ "x$1" = "xinstall" ] ; then echo "download_debs not going to be installed due to not locating common_arguments_to_scripts.sh"; exit 1; fi + if [ "x$1" = "xinstall" ] ; then echo "$(basename $(realpath ${0})) is not going to be installed due to not locating common_arguments_to_scripts.sh"; exit 1; fi fi # ----- processing command line arguments ----- #