From b89a85c17797af6f083e51cbf15477828890067b Mon Sep 17 00:00:00 2001 From: George Kapetanakis Date: Thu, 19 Mar 2026 15:42:50 -0400 Subject: [PATCH] Quote all instances of `rm $0` To prevent accidental deletions on invocation paths with whitespace --- cidr2ip/deb.sh | 2 +- cidr2range/deb.sh | 2 +- grepdomain/deb.sh | 2 +- grepip/deb.sh | 2 +- ipinfo/deb.sh | 2 +- matchip/deb.sh | 2 +- prips/deb.sh | 2 +- randip/deb.sh | 2 +- range2cidr/deb.sh | 2 +- range2ip/deb.sh | 2 +- splitcidr/deb.sh | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cidr2ip/deb.sh b/cidr2ip/deb.sh index 57bda0ef..eee4f2c5 100755 --- a/cidr2ip/deb.sh +++ b/cidr2ip/deb.sh @@ -34,5 +34,5 @@ echo echo 'You can now run `cidr2ip`'. if [ -f "$0" ]; then - rm $0 + rm "$0" fi diff --git a/cidr2range/deb.sh b/cidr2range/deb.sh index cab50eb1..46241eff 100755 --- a/cidr2range/deb.sh +++ b/cidr2range/deb.sh @@ -33,5 +33,5 @@ echo echo 'You can now run `cidr2range`'. if [ -f "$0" ]; then - rm $0 + rm "$0" fi diff --git a/grepdomain/deb.sh b/grepdomain/deb.sh index 9a7bfa66..c2ee24d7 100755 --- a/grepdomain/deb.sh +++ b/grepdomain/deb.sh @@ -33,5 +33,5 @@ echo echo 'You can now run `grepdomain`'. if [ -f "$0" ]; then - rm $0 + rm "$0" fi diff --git a/grepip/deb.sh b/grepip/deb.sh index abe9069a..25bea1f2 100755 --- a/grepip/deb.sh +++ b/grepip/deb.sh @@ -33,5 +33,5 @@ echo echo 'You can now run `grepip`'. if [ -f "$0" ]; then - rm $0 + rm "$0" fi diff --git a/ipinfo/deb.sh b/ipinfo/deb.sh index 12f0ab43..da2ee5e1 100755 --- a/ipinfo/deb.sh +++ b/ipinfo/deb.sh @@ -34,5 +34,5 @@ echo echo 'You can now run `ipinfo`'. if [ -f "$0" ]; then - rm $0 + rm "$0" fi diff --git a/matchip/deb.sh b/matchip/deb.sh index 262c5bd6..53975bde 100755 --- a/matchip/deb.sh +++ b/matchip/deb.sh @@ -33,5 +33,5 @@ echo echo 'You can now run `matchip`'. if [ -f "$0" ]; then - rm $0 + rm "$0" fi diff --git a/prips/deb.sh b/prips/deb.sh index 33299a77..5d18979d 100755 --- a/prips/deb.sh +++ b/prips/deb.sh @@ -33,5 +33,5 @@ echo echo 'You can now run `prips`'. if [ -f "$0" ]; then - rm $0 + rm "$0" fi diff --git a/randip/deb.sh b/randip/deb.sh index 85c69cf2..d8af751f 100755 --- a/randip/deb.sh +++ b/randip/deb.sh @@ -33,5 +33,5 @@ echo echo 'You can now run `randip`'. if [ -f "$0" ]; then - rm $0 + rm "$0" fi diff --git a/range2cidr/deb.sh b/range2cidr/deb.sh index bcca1131..385a0c10 100755 --- a/range2cidr/deb.sh +++ b/range2cidr/deb.sh @@ -33,5 +33,5 @@ echo echo 'You can now run `range2cidr`'. if [ -f "$0" ]; then - rm $0 + rm "$0" fi diff --git a/range2ip/deb.sh b/range2ip/deb.sh index 7bad2d3b..29dcb38f 100755 --- a/range2ip/deb.sh +++ b/range2ip/deb.sh @@ -33,5 +33,5 @@ echo echo 'You can now run `range2ip`'. if [ -f "$0" ]; then - rm $0 + rm "$0" fi diff --git a/splitcidr/deb.sh b/splitcidr/deb.sh index 39f64bce..e74b59c0 100755 --- a/splitcidr/deb.sh +++ b/splitcidr/deb.sh @@ -33,5 +33,5 @@ echo echo 'You can now run `splitcidr`'. if [ -f "$0" ]; then - rm $0 + rm "$0" fi