From 06b16dfe09c9fd9bc78c6b26f95d6fde06072d49 Mon Sep 17 00:00:00 2001 From: Andr3as Date: Wed, 18 Jan 2017 21:39:10 +0100 Subject: [PATCH 1/2] Changes shell for script from bash to dash --- scripts/expect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/expect.sh b/scripts/expect.sh index 048c187..cbd66d2 100755 --- a/scripts/expect.sh +++ b/scripts/expect.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh #Author: Andr3as #Last Edit: 11.09.14 #Purpose: Handler for a git requests with authentification From 87b8bf70cca6feb1152f21d81b571ebe4199ff3e Mon Sep 17 00:00:00 2001 From: Andr3as Date: Sat, 25 Mar 2017 21:51:09 +0100 Subject: [PATCH 2/2] Ports shell script from bash to dash --- scripts/expect.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/expect.sh b/scripts/expect.sh index cbd66d2..0987aa5 100755 --- a/scripts/expect.sh +++ b/scripts/expect.sh @@ -1,6 +1,6 @@ #!/bin/sh #Author: Andr3as -#Last Edit: 11.09.14 +#Last Edit: 03/25/2017 #Purpose: Handler for a git requests with authentification # Copyright (c) Codiad & Andr3as, distributed @@ -18,27 +18,27 @@ user=0 #Handle inputs while [ "$1" != "" ] do - if [ "$1" == "-u" ] + if [ "$1" = "-u" ] then user=$2 shift shift - elif [ "$1" == "-p" ] + elif [ "$1" = "-p" ] then password=$2 shift shift - elif [ "$1" == "-k" ] + elif [ "$1" = "-k" ] then passphrase=$2 shift shift - elif [ "$1" == "-c" ] + elif [ "$1" = "-c" ] then command=$2 shift shift - elif [ "$1" == "-s" ] + elif [ "$1" = "-s" ] then path=$2 shift @@ -50,13 +50,13 @@ while [ "$1" != "" ] fi done -if [ "$command" == "" ] +if [ "$command" = "" ] then echo "No command specified" exit 64 fi -if [ "$path" == "" ] +if [ "$path" = "" ] then echo "No path specified" exit 64