From 90be15b96a593e9ee322eff890cee3a39ff97dbe Mon Sep 17 00:00:00 2001 From: remittor Date: Sat, 12 Aug 2023 16:34:10 +0300 Subject: [PATCH] Some bug fixes --- xcreate.sh | 1 + xupdate.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/xcreate.sh b/xcreate.sh index 8b5a6da..47a2692 100755 --- a/xcreate.sh +++ b/xcreate.sh @@ -31,6 +31,7 @@ XTOPDIR=$XDIR/$TARGET_BRANCH find . -maxdepth 1 -type f -name "*.sh" -exec cp {} $XTOPDIR \; >/dev/null find . -maxdepth 1 -type f -name "*.config" -exec cp {} $XTOPDIR \; >/dev/null find . -maxdepth 1 -type f -name "*.json" -exec cp {} $XTOPDIR \; >/dev/null +find . -maxdepth 1 -type f -name "*.netports" -exec cp {} $XTOPDIR \; >/dev/null echo "Repository '$TARGET_BRANCH' created!" #cd $XTOPDIR diff --git a/xupdate.sh b/xupdate.sh index de01450..1af97b6 100755 --- a/xupdate.sh +++ b/xupdate.sh @@ -28,6 +28,8 @@ if [ "$OPT_FULL_UPDATE" = "true" ]; then fi git reset --hard HEAD +#git revert HEAD~30..HEAD +#git reset --hard HEAD git fetch [ "$?" != "0" ] && die "Can't fetch current repository" @@ -83,6 +85,7 @@ if [ "$OPT_FULL_UPDATE" = "true" ]; then fi if [ -f "$XDIR/luci_dispatcher.sh" ]; then + chmod 755 ./luci_dispatcher.sh ./luci_dispatcher.sh fi