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

View file

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

View file

@ -7,21 +7,32 @@ url1=${url%.*}
url2=${url1#*//}
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
pwd
if [ -d ${packagename} ];then
echo "Bereits vorhanden!!!"
cd ${packagename}
git reset --hard
git pull
echo "Bereits vorhanden!!!"
cd ${packagename}
git reset --hard
if ! git pull; then
cd
pwd
rm -Rv ${packagename}
aurinstaller
fi
else
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}
aurinstaller
fi
makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed

View file

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