Update cattools.sh
This commit is contained in:
@@ -58,7 +58,6 @@ check_for_updates() {
|
|||||||
if curl -m 5 -s -o "$TEMP_FILE" "$URL"; then
|
if curl -m 5 -s -o "$TEMP_FILE" "$URL"; then
|
||||||
if [ -s "$TEMP_FILE" ]; then
|
if [ -s "$TEMP_FILE" ]; then
|
||||||
echo "更新已找到,替换当前脚本..."
|
echo "更新已找到,替换当前脚本..."
|
||||||
echo ""
|
|
||||||
mv "$TEMP_FILE" "$0"
|
mv "$TEMP_FILE" "$0"
|
||||||
chmod +x "$0"
|
chmod +x "$0"
|
||||||
exec "$0" "$@"
|
exec "$0" "$@"
|
||||||
@@ -287,14 +286,10 @@ use_repo(){
|
|||||||
opkg update
|
opkg update
|
||||||
}
|
}
|
||||||
|
|
||||||
# init
|
|
||||||
|
|
||||||
install_cattools
|
install_cattools
|
||||||
|
|
||||||
check_for_updates
|
check_for_updates
|
||||||
|
|
||||||
# choice
|
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
show_menu
|
show_menu
|
||||||
read choice
|
read choice
|
||||||
|
|||||||
Reference in New Issue
Block a user