Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Changes shell for script from bash to dash #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions scripts/expect.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#!/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
Expand All @@ -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
Expand All @@ -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
Expand Down