Use sh instead of bash for scripts

Signed-off-by: Billy Brawner <billy@wbrawner.com>
This commit is contained in:
Billy Brawner 2019-12-22 16:33:19 -06:00
parent 5f0df10985
commit 7c408d6d70
9 changed files with 9 additions and 9 deletions

2
delete
View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
if [[ -z "$1" ]]; then
echo "Please enter a repository name"

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
if [[ -z "$1" ]]; then
echo "Please enter a repository name"

2
help
View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
cat <<EOF
Welcome to the Brawner home private git server. The available commands are listed below:

2
ls
View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
for repo in $(/usr/bin/find -maxdepth 1 -type d -name "*.git"); do /usr/bin/basename $repo .git; done | sort

2
mirror
View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
if [[ -z "$1" ]]; then
echo "Please enter a repository URL"

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
mkdir "$1"
(

2
new
View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
if [[ -z "$1" ]]; then
echo "Please enter a repository name"

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
REPO="$1"

2
rename
View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
if [[ -z "$1" ]]; then
echo "Please enter a source repository name"