From 80030bb39b42842b031f77cb3523e4858724ca05 Mon Sep 17 00:00:00 2001 From: simono41 Date: Tue, 12 Jun 2018 00:03:18 +0200 Subject: [PATCH] aurinstaller_name_update --- aurinstall.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/aurinstall.sh b/aurinstall.sh index c10ebbf..bf24e78 100755 --- a/aurinstall.sh +++ b/aurinstall.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -x url="$1" url1=${url%.*} @@ -15,7 +15,12 @@ if [ -d ${packagename} ];then git reset --hard git pull else - git clone ${url} + if git clone ${url}; then + echo "git erfolgreich runtergeladen!!!" + else + echo "verändere URL zum erfolgreichen herunterladen!!!" + git clone "https://aur.archlinux.org/${url}.git" + fi cd ${packagename} fi makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed