From e73021f2f3a249eaaba69f5ae274ce344cde1577 Mon Sep 17 00:00:00 2001 From: simono41 Date: Thu, 14 Sep 2017 14:57:56 +0200 Subject: [PATCH] fix --- auto.sh | 6 ++++-- sgit | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100755 sgit diff --git a/auto.sh b/auto.sh index 13d6667..b966cff 100755 --- a/auto.sh +++ b/auto.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -x +set -ex if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" 1>&2 @@ -8,7 +8,9 @@ if [[ $EUID -ne 0 ]]; then fi echo "Als root Angemeldet" -apt-get install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf +apt update + +apt install git libssl-dev libpam0g-dev zlib1g-dev dh-autoreconf pacman -S git openssl autoconf automake make gcc diff --git a/sgit b/sgit new file mode 100755 index 0000000..40ab2eb --- /dev/null +++ b/sgit @@ -0,0 +1,22 @@ +#!/bin/bash + +set -ex + +if [[ "--help" == "${1}" ]]; then +echo "bash ./sgit user.email commit" +fi + +if [[ -z "${2}" ]]; then +echo "Bitte email und commit angeben!!!" +exit 1 +fi + +git config --global user.email "${1}" +git config --global user.name "${1}" +git status +git pull +git add --all +git commit --all -m "${2}" +git show +git push +git status