Update check updates function
This commit is contained in:
parent
1b207ab6cb
commit
03e5ed9221
32
kali/fluxion
32
kali/fluxion
|
@ -482,22 +482,22 @@ if [ $FLUX_DEBUG != 1 ]; then
|
|||
spinner "$!"
|
||||
revision_online=$(cat $DUMP_PATH/Irev)
|
||||
echo -e ""$white" [${red2}${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
|
||||
|
|
Loading…
Reference in New Issue