Merge pull request #1338 from kauedg/dps-patch-1

call $0 instead of hardcoded script name
This commit is contained in:
Marco Ochse
2023-06-01 13:28:04 +02:00
committed by GitHub

View File

@ -11,7 +11,7 @@ fi
myPARAM="$1" myPARAM="$1"
if [[ $myPARAM =~ ^([1-9]|[1-9][0-9]|[1-9][0-9][0-9])$ ]]; if [[ $myPARAM =~ ^([1-9]|[1-9][0-9]|[1-9][0-9][0-9])$ ]];
then then
watch --color -n $myPARAM "dps.sh" watch --color -n $myPARAM "$0"
exit exit
fi fi