From 9ff2d9ddc7876e7c75cc6c7743124151bf2aa297 Mon Sep 17 00:00:00 2001 From: erjenerdal Date: Mon, 30 Mar 2026 16:42:08 +0200 Subject: [PATCH 1/2] Added set_nickname.sh which expects the nick to be passed as a parameter --- bash/nord/set_nickname.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bash/nord/set_nickname.sh diff --git a/bash/nord/set_nickname.sh b/bash/nord/set_nickname.sh new file mode 100755 index 0000000..fb2bd3e --- /dev/null +++ b/bash/nord/set_nickname.sh @@ -0,0 +1,9 @@ +#! /usr/bin/bash + +if [ -v "$1" ]; then + echo "Pass the nickname for the device" + exit +fi + +nordvpn meshnet set nickname BigAssBerryPI + From 6db13514a91e11ef0cd0ffe6b8cfb2b445501f52 Mon Sep 17 00:00:00 2001 From: erjenerdal Date: Mon, 30 Mar 2026 16:50:43 +0200 Subject: [PATCH 2/2] Fixed AI reported errors --- bash/nord/set_nickname.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bash/nord/set_nickname.sh b/bash/nord/set_nickname.sh index fb2bd3e..6ab42c2 100755 --- a/bash/nord/set_nickname.sh +++ b/bash/nord/set_nickname.sh @@ -1,9 +1,8 @@ #! /usr/bin/bash -if [ -v "$1" ]; then +if [ -z "$1" ]; then echo "Pass the nickname for the device" - exit + exit 1 fi -nordvpn meshnet set nickname BigAssBerryPI - +nordvpn meshnet set nickname "$1"