From edda041093213d6b303cd6305178227f0839693c Mon Sep 17 00:00:00 2001 From: Kaue Doretto Grecchi <31520323+kauedg@users.noreply.github.com> Date: Wed, 31 May 2023 14:47:15 -0300 Subject: [PATCH] call $0 instead of hardcoded script name Allows the script to work when called from another directory or if the script name changes. --- bin/dps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dps.sh b/bin/dps.sh index 06b6eefd..b5969435 100755 --- a/bin/dps.sh +++ b/bin/dps.sh @@ -11,7 +11,7 @@ fi myPARAM="$1" if [[ $myPARAM =~ ^([1-9]|[1-9][0-9]|[1-9][0-9][0-9])$ ]]; then - watch --color -n $myPARAM "dps.sh" + watch --color -n $myPARAM "$0" exit fi