From ebffbf24d3eb39d6e562ce922f1afda74521ad50 Mon Sep 17 00:00:00 2001 From: rune Date: Wed, 22 Mar 2023 11:47:12 +0100 Subject: [PATCH] Small fixes --- setup.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/setup.sh b/setup.sh index 2f6c02f..90632f6 100644 --- a/setup.sh +++ b/setup.sh @@ -3,13 +3,8 @@ wget https://gitlab.pm/rune/ddns/src/branch/main/src/do-ddns/ddns.py wget https://gitlab.pm/rune/ddns/src/branch/main/src/do-ddns/requirements.txt echo "ddns downloaded. Moving to /usr/local/bin and setting execute (run) rights on app." echo "Your computer will ask for password since the rest of the install is done with sudo." -read -n1 -s -r -p $'Press space to continue or any other key to cancle' key -if [ "$key" = ' ' ]; then - sudo mv ddns.py /usr/local/bin/ddns - sudo chmod +x /usr/local/bin/ddns - python3 pip3 -r requirements.txt - exit 0 -else - echo "Install aborted by user!" - exit 1 -fi \ No newline at end of file +read -n 1 -r -s -p "Press any key to continue..." +sudo mv ddns.py /usr/local/bin/ddns +sudo chmod +x /usr/local/bin/ddns +python3 pip3 -r requirements.txt +exit 0