Skip to content

Commit

Permalink
fix Force-mode when only gm2xpkg ver differs.
Browse files Browse the repository at this point in the history
and target binary will be EXIST
  • Loading branch information
Apaczer committed Sep 14, 2024
1 parent a696a2a commit 0f70dc6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tools/gm2xpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -464,15 +464,13 @@ if test $PACKAGE -eq 1 >/dev/null 2>&1 || test $ZIP -eq 1 >/dev/null 2>&1 || tes
mkdir -p $RELEASEDIR
# mkdir -p $ASSETSDIR
mkdir -p $OPKG_ASSETSDIR
mkdir -p $TARGET_INSTALL_DIR
mkdir -p $RELEASEDIR/gmenu2x/sections/$SECTION
if test "x${FORCE}" != "xyes" || test "x${TARGET_EXIST}" == "xyes"; then
cp $TARGET_PATH $RELEASEDIR/
cp $TARGET_PATH $TARGET_INSTALL_DIR/
else
rm $TARGET_PATH
fi
mkdir -p $TARGET_INSTALL_DIR
mkdir -p $RELEASEDIR/gmenu2x/sections/$SECTION
test "x${FORCE}" != "xyes"\
&& mv $RELEASEDIR/$TARGET $TARGET_INSTALL_DIR/
test -d $ASSETSDIR\
&& cp -r $ASSETSDIR/* $TARGET_INSTALL_DIR\
|| echo "WARNING: No assets directory found matching name \"${ASSETSDIR}/\""
Expand Down

0 comments on commit 0f70dc6

Please sign in to comment.