From 8d2e3a2fce92dd5bee49d10aaa589bb18585481d Mon Sep 17 00:00:00 2001 From: William Todt Date: Thu, 21 Apr 2016 14:09:07 +0200 Subject: [PATCH] Update fluxion --- fluxion | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/fluxion b/fluxion index 6189557..c7e7c9c 100755 --- a/fluxion +++ b/fluxion @@ -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