tenir comptes des mises à jour de update-nutools
This commit is contained in:
parent
5a27222ff6
commit
02fd6fb80e
|
@ -9,13 +9,17 @@ if [ $# -ne 1 -o "$1" != --do-update ]; then
|
||||||
/bin/cp "$0" "$TMPSCRIPT"
|
/bin/cp "$0" "$TMPSCRIPT"
|
||||||
chmod 755 "$TMPSCRIPT"
|
chmod 755 "$TMPSCRIPT"
|
||||||
exec bash "$TMPSCRIPT" --do-update
|
exec bash "$TMPSCRIPT" --do-update
|
||||||
else
|
|
||||||
cd /tmp
|
|
||||||
rm -rf "$NAME"
|
|
||||||
git clone "$REPO" || exit 1
|
|
||||||
cd "$NAME"
|
|
||||||
bash ./uinst -y || exit 1
|
|
||||||
cd ..
|
|
||||||
rm -rf "$NAME"
|
|
||||||
rm "$0"; exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd /tmp
|
||||||
|
rm -rf "$NAME"
|
||||||
|
git clone "$REPO" || exit 1
|
||||||
|
cd "$NAME"
|
||||||
|
if ! diff -q update-nutools "$0"; then
|
||||||
|
echo "Le fichier update-nutools a été mis à jour. Ce script va être relancé"
|
||||||
|
exec bash ./update-nutools
|
||||||
|
fi
|
||||||
|
bash ./uinst -y || exit 1
|
||||||
|
cd ..
|
||||||
|
rm -rf "$NAME"
|
||||||
|
rm "$0"; exit 0
|
Loading…
Reference in New Issue