gitfix
This commit is contained in:
parent
d9e2bb822c
commit
f68cbcf2e7
4 changed files with 30 additions and 11 deletions
|
@ -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
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -7,14 +7,7 @@ url1=${url%.*}
|
||||||
url2=${url1#*//}
|
url2=${url1#*//}
|
||||||
packagename=${url2#*/}
|
packagename=${url2#*/}
|
||||||
|
|
||||||
cd
|
function aurinstaller() {
|
||||||
pwd
|
|
||||||
if [ -d ${packagename} ];then
|
|
||||||
echo "Bereits vorhanden!!!"
|
|
||||||
cd ${packagename}
|
|
||||||
git reset --hard
|
|
||||||
git pull
|
|
||||||
else
|
|
||||||
if git clone ${url}; then
|
if git clone ${url}; then
|
||||||
echo "git erfolgreich runtergeladen!!!"
|
echo "git erfolgreich runtergeladen!!!"
|
||||||
else
|
else
|
||||||
|
@ -22,6 +15,24 @@ else
|
||||||
git clone "https://aur.archlinux.org/${url}.git"
|
git clone "https://aur.archlinux.org/${url}.git"
|
||||||
fi
|
fi
|
||||||
cd ${packagename}
|
cd ${packagename}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
cd
|
||||||
|
pwd
|
||||||
|
if [ -d ${packagename} ];then
|
||||||
|
echo "Bereits vorhanden!!!"
|
||||||
|
cd ${packagename}
|
||||||
|
git reset --hard
|
||||||
|
if ! git pull; then
|
||||||
|
cd
|
||||||
|
pwd
|
||||||
|
rm -Rv ${packagename}
|
||||||
|
aurinstaller
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
aurinstaller
|
||||||
fi
|
fi
|
||||||
makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed
|
makepkg -si --skipchecksums --skippgpcheck --nocheck --noconfirm --install --needed
|
||||||
|
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue