This commit is contained in:
simono41 2018-08-13 15:02:34 +02:00
parent d9e2bb822c
commit f68cbcf2e7
4 changed files with 30 additions and 11 deletions

View file

@ -46,6 +46,7 @@ function gitclone() {
if [ -d "/opt/${repo}" ]; then if [ -d "/opt/${repo}" ]; then
echo "${repo} existiert bereits!!!" echo "${repo} existiert bereits!!!"
cd /opt/${repo} cd /opt/${repo}
git reset --hard
git pull git pull
else else
git clone ${WEBADDRESS} /opt/${repo} git clone ${WEBADDRESS} /opt/${repo}
@ -53,6 +54,7 @@ function gitclone() {
if [ -d "/opt/${repo1}" ]; then if [ -d "/opt/${repo1}" ]; then
echo "${repo1} existiert bereits!!!" echo "${repo1} existiert bereits!!!"
cd /opt/${repo1} cd /opt/${repo1}
git reset --hard
git pull git pull
else else
git clone ${WEBADDRESS1} /opt/${repo1} git clone ${WEBADDRESS1} /opt/${repo1}
@ -695,6 +697,7 @@ if [ "$version" != "lite" ] && [ "$skip" != "skip" ]; then
if [ -d /opt/beautysh ];then if [ -d /opt/beautysh ];then
echo "Bereits vorhanden!!!" echo "Bereits vorhanden!!!"
cd /opt/beautysh cd /opt/beautysh
git reset --hard
git pull git pull
else else
git clone https://github.com/bemeurer/beautysh /opt/beautysh git clone https://github.com/bemeurer/beautysh /opt/beautysh
@ -715,6 +718,7 @@ if [ "$version" != "lite" ] && [ "$skip" != "skip" ]; then
if [ -d /opt/powerline-shell-fonts ];then if [ -d /opt/powerline-shell-fonts ];then
echo "Bereits vorhanden!!!" echo "Bereits vorhanden!!!"
cd /opt/powerline-shell-fonts cd /opt/powerline-shell-fonts
git reset --hard
git pull git pull
else else
git clone https://github.com/powerline/fonts.git /opt/powerline-shell-fonts git clone https://github.com/powerline/fonts.git /opt/powerline-shell-fonts
@ -727,6 +731,7 @@ if [ "$version" != "lite" ] && [ "$skip" != "skip" ]; then
if [ -d /opt/uncrustify ];then if [ -d /opt/uncrustify ];then
echo "Bereits vorhanden!!!" echo "Bereits vorhanden!!!"
cd /opt/uncrustify cd /opt/uncrustify
git reset --hard
git pull git pull
else else
git clone https://github.com/uncrustify/uncrustify.git /opt/uncrustify git clone https://github.com/uncrustify/uncrustify.git /opt/uncrustify
@ -748,6 +753,7 @@ if [ "$version" != "lite" ] && [ "$skip" != "skip" ]; then
if [ -d /opt/conky ];then if [ -d /opt/conky ];then
echo "Bereits vorhanden!!!" echo "Bereits vorhanden!!!"
cd /opt/conky cd /opt/conky
git reset --hard
git pull git pull
else else
git clone https://github.com/brndnmtthws/conky.git /opt/conky git clone https://github.com/brndnmtthws/conky.git /opt/conky

View file

@ -105,6 +105,7 @@ function gitclone() {
if [ -d "/opt/${repo}" ]; then if [ -d "/opt/${repo}" ]; then
echo "${repo} already exists!!!" echo "${repo} already exists!!!"
cd /opt/${repo} cd /opt/${repo}
git reset --hard
git pull git pull
else else
git clone ${WEBADDRESS} /opt/${repo} git clone ${WEBADDRESS} /opt/${repo}

View file

@ -7,21 +7,32 @@ url1=${url%.*}
url2=${url1#*//} url2=${url1#*//}
packagename=${url2#*/} packagename=${url2#*/}
function aurinstaller() {
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}
}
cd cd
pwd pwd
if [ -d ${packagename} ];then if [ -d ${packagename} ];then
echo "Bereits vorhanden!!!" echo "Bereits vorhanden!!!"
cd ${packagename} cd ${packagename}
git reset --hard git reset --hard
git pull if ! git pull; then
cd
pwd
rm -Rv ${packagename}
aurinstaller
fi
else else
if git clone ${url}; then aurinstaller
echo "git erfolgreich runtergeladen!!!"
else
echo "verändere URL zum erfolgreichen herunterladen!!!"
git clone "https://aur.archlinux.org/${url}.git"
fi
cd ${packagename}
fi fi
makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed

View file

@ -24,6 +24,7 @@ function gitclone() {
if [ -d "/opt/${repo}" ]; then if [ -d "/opt/${repo}" ]; then
echo "${repo} existiert bereits!!!" echo "${repo} existiert bereits!!!"
cd /opt/${repo} cd /opt/${repo}
git reset --hard
git pull git pull
else else
git clone ${WEBADDRESS} /opt/${repo} git clone ${WEBADDRESS} /opt/${repo}