Skip to content

Commit

Permalink
Update renew.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nap0o authored Jan 11, 2024
1 parent d2f21b6 commit b579d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/renew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ for i in {renew,backup,restore}; do
if [ -s $WORK_DIR/$i.sh ]; then
sed -n '1,/^########/p' $WORK_DIR/$i.sh > $TEMP_DIR/$i.sh
wget -qO- ${GH_PROXY}https://raw.githubusercontent.com/nap0o/nezha/main/template/$i.sh | sed '1,/^########/d' >> $TEMP_DIR/$i.sh
[ $(wc -l $TEMP_DIR/$i.sh | awk '{print $1}') -gt 20 ] && mv -f $TEMP_DIR/$i.sh $WORK_DIR/ && info "\n Update $i.sh Successful. \n" || warning "\n Update $i.sh failed.\n"
[ $(wc -l $TEMP_DIR/$i.sh | awk '{print $1}') -gt 20 ] && chmod +x $TEMP_DIR/$i.sh && mv -f $TEMP_DIR/$i.sh $WORK_DIR/ && info "\n Update $i.sh Successful. \n" || warning "\n Update $i.sh failed.\n"
fi
done

0 comments on commit b579d88

Please sign in to comment.