delete orphan file

Fixed an issue where some orphan files not deleted when a custom version is requested.
This commit is contained in:
Cristhian Martínez Ochoa 2018-04-25 16:12:29 -06:00
parent a5e714ec07
commit 315b269f07

1
weby
View file

@ -47,6 +47,7 @@ if [[ $2 == "-ver="* ]]; then
echo "$(tput setaf 1)"
if [[ $code == 200 ]]; then
sudo wget --timeout=15 -qrO $HOME/webinoly.tar https://qrok.es/webinoly?version=$ver
sudo rm webinoly?version=$ver
webyversion="$ver"
[[ $ver == "beta" ]] && echo "[WARNING] You are installing a BETA version of Webinoly and it's not recommended for production enviroments. $(tput sgr0)"
else