
Συντονιστής: konnn
update() {
new_version=`wget --no-check-certificate https://raw.github.com/Clepto/Crypt/master/crypt.sh -O - | grep "VERSION=" | cut -d "=" -f 2`
if [ $version != $new_version ];
then zenity --question --title="Αναβάθμιση" --text="Υπάρχει κανούργια έκδοση, θέλετε να κάνετε αναβάθμιση;"
if [ $? == 0 ];
then echo wget --no-check-certificate https://github.com/Clepto/Crypt/tarball/master -O Crypt.tar.gz;
rm -rf Crypt && tar xzf Crypt.tar.gz;
cd Crypt && ./crypt.sh
elif [ $? != 0 ];
then echo menu
fi
elif [ $version == $new_version ];
then menu
fi
}
update
./test.sh: line 9: [: too many arguments
./test.sh: line 23: [: too many arguments
bash test.sh
if [ $version != $new_version ];
elif [ $version == $new_version ];
echo "Moo" | sudo tee /etc/test.txt
echo "Moo 2" | sudo tee -a /etc/test.txt