Update fluxion

This commit is contained in:
William Todt 2016-04-21 14:09:07 +02:00
parent 01d460f8f1
commit 8d2e3a2fce
1 changed files with 16 additions and 16 deletions

32
fluxion
View File

@ -516,22 +516,22 @@ if [ $FLUX_DEBUG != 1 ]; then
spinner "$!"
revision_online=$(cat $DUMP_PATH/Irev)
echo -e ""$white" [${purple}${revision_online}$white"$transparent"]"
# if [ "$revision_online" != "?" ]; then
#
# if [ "$revision" != "$revision_online" ]; then
#
# cp $0 $HOME/flux_rev-$revision.backup
# curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" -L https://sites.google.com/site/deltaxflux/fluxion -s -o $0
# echo
# echo
# echo -e ""$red"
#Updated successfully! Restarting the script to apply the changes ..."$transparent""
# sleep 5
# chmod +x $0
# exec $0
#
# fi
# fi
if [ "$revision_online" != "?" ]; then
if [ "$revision" != "$revision_online" ]; then
cp $0 $HOME/flux_rev-$revision.backup
curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" -L https://sites.google.com/site/deltaxflux/fluxion -s -o $0
echo
echo
echo -e ""$red"
Updated successfully! Restarting the script to apply the changes ..."$transparent""
sleep 5
chmod +x $0
exec $0
fi
fi
echo ""
tput cnorm
sleep 2