Some bug fixes

This commit is contained in:
remittor
2023-08-12 16:34:10 +03:00
parent 00b7b0e52f
commit 90be15b96a
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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