Use sh instead of bash for scripts
Signed-off-by: Billy Brawner <billy@wbrawner.com>
This commit is contained in:
parent
5f0df10985
commit
7c408d6d70
9 changed files with 9 additions and 9 deletions
2
delete
2
delete
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Please enter a repository name"
|
echo "Please enter a repository name"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Please enter a repository name"
|
echo "Please enter a repository name"
|
||||||
|
|
2
help
2
help
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Welcome to the Brawner home private git server. The available commands are listed below:
|
Welcome to the Brawner home private git server. The available commands are listed below:
|
||||||
|
|
2
ls
2
ls
|
@ -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
|
for repo in $(/usr/bin/find -maxdepth 1 -type d -name "*.git"); do /usr/bin/basename $repo .git; done | sort
|
||||||
|
|
||||||
|
|
2
mirror
2
mirror
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Please enter a repository URL"
|
echo "Please enter a repository URL"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
mkdir "$1"
|
mkdir "$1"
|
||||||
(
|
(
|
||||||
|
|
2
new
2
new
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Please enter a repository name"
|
echo "Please enter a repository name"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
REPO="$1"
|
REPO="$1"
|
||||||
|
|
||||||
|
|
2
rename
2
rename
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Please enter a source repository name"
|
echo "Please enter a source repository name"
|
||||||
|
|
Loading…
Reference in a new issue