Update update.sh

script self update was prompting for overwrite confirmation. forced overwrite
This commit is contained in:
gingerman 2019-02-13 18:19:26 -05:00 committed by taniman
parent b40aa2347c
commit bb052c0549
1 changed files with 2 additions and 2 deletions

View File

@ -281,9 +281,9 @@ if [[ $continue == "y" ]] || [[ $continue == "Y" ]]; then
echo echo
echo "$(tput setaf 2) === Extracting download === $(tput sgr0)" echo "$(tput setaf 2) === Extracting download === $(tput sgr0)"
### unzip the jar file only from the zip. -q for quiet, -j to prevent extracting directories ### ### unzip the jar file only from the zip. -q for quiet, -j to prevent extracting directories ###
unzip -q -j ProfitTrailer-$version.zip '*jar' '*sh' unzip -q -j -o ProfitTrailer-$version.zip '*jar' '*sh'
### Update linux-update script ### ### Update linux-update script ###
mv linux-update.sh "$DIR"/"$script" mv -f linux-update.sh "$DIR"/"$script" 2>/dev/null
chmod +x "$DIR"/"$script" chmod +x "$DIR"/"$script"
### Set loc variable to No, If user ends up running this script from within a Bot folder we wont delete their jar file ### ### Set loc variable to No, If user ends up running this script from within a Bot folder we wont delete their jar file ###