From ae67308455bb530c79a6fbcc0aaf6ae0422f2acf Mon Sep 17 00:00:00 2001 From: Marcel <25705862+Segelzwerg@users.noreply.github.com> Date: Wed, 23 Nov 2022 23:29:59 +0100 Subject: [PATCH 1/2] FIX: spacing --- deploy.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy.sh b/deploy.sh index 9b0f55ec..a494737c 100644 --- a/deploy.sh +++ b/deploy.sh @@ -5,32 +5,32 @@ echo "Mongo server started" echo "Enter host address for whist server (127.0.0.1):" read host_addr -if [ -z "$host_addr"] +if [ -z "$host_addr" ] then host_addr=127.0.0.1 fi echo "Enter host port for whist server (8000):" read host_port -if [ -z "$host_port"] +if [ -z "$host_port" ] then host_port=8000 fi echo "Enter administrator's username (admin):" read admin_name -if [ -z "$admin_name"] +if [ -z "$admin_name" ] then admin_name="admin" fi echo "Enter administrator's password (admin):" read admin_pwd -if [ -z "$admin_pwd"] +if [ -z "$admin_pwd" ] then admin_pwd="admin" fi python -m whist_server $host_addr $host_port --admin_name $admin_name --admin_pwd $admin_pwd & -exit 0 \ No newline at end of file +exit 0 From 0549169e324d73465884ce5256d5d4f60029879a Mon Sep 17 00:00:00 2001 From: Marcel <25705862+Segelzwerg@users.noreply.github.com> Date: Wed, 23 Nov 2022 23:40:02 +0100 Subject: [PATCH 2/2] FIX: use -r flag in reads --- deploy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index a494737c..5649d780 100644 --- a/deploy.sh +++ b/deploy.sh @@ -4,28 +4,28 @@ systemctl start mongod echo "Mongo server started" echo "Enter host address for whist server (127.0.0.1):" -read host_addr +read -r host_addr if [ -z "$host_addr" ] then host_addr=127.0.0.1 fi echo "Enter host port for whist server (8000):" -read host_port +read -r host_port if [ -z "$host_port" ] then host_port=8000 fi echo "Enter administrator's username (admin):" -read admin_name +read -r admin_name if [ -z "$admin_name" ] then admin_name="admin" fi echo "Enter administrator's password (admin):" -read admin_pwd +read -r admin_pwd if [ -z "$admin_pwd" ] then admin_pwd="admin"