Update update.sh

This commit is contained in:
dami 2026-06-22 17:45:38 +08:00
parent 666ebeef0d
commit ecaa0e99c5
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ fi
unzip $DOWNLOAD_FILE -d $TARGET_DIR
echo "TARGET_DIR:"$TARGET_DIR
cd $TARGET_DIR && rm -rf app
cd $TARGET_DIR && rm -rf dashboard-linux-${ARCH}
if [ ! -f $TARGET_DIR/app ];then
cd $TARGET_DIR && rm -rf app
cd $TARGET_DIR && rm -rf dashboard-linux-${ARCH}
cd $TARGET_DIR && mv dashboard-linux-${ARCH} app && chmod +x app
fi