diff --git a/publish/update-opentoonz.sh b/publish/update-opentoonz.sh index 2d29117..ebb2615 100755 --- a/publish/update-opentoonz.sh +++ b/publish/update-opentoonz.sh @@ -38,12 +38,12 @@ run() { echo "Cannot find version, pheraps appimage not ready. Cancel." return 1 fi - if ! ls $PUBLISH_DIR/OpenToonz-$VERSION-$COMMIT-*-$PLATFORM_SUFFIX.appimage 1> /dev/null 2>&1; then + if ! ls $PUBLISH_DIR/OpenToonz-$VERSION-*-$COMMIT-$PLATFORM_SUFFIX.appimage 1> /dev/null 2>&1; then echo "Publish new version $VERSION-$COMMIT-$PLATFORM_SUFFIX" rm -f $PUBLISH_DIR/OpenToonz-*-$PLATFORM_SUFFIX.appimage - cp $DIR/opentoonz.appimage $PUBLISH_DIR/OpenToonz-$VERSION-$COMMIT-$DATE-$PLATFORM_SUFFIX.appimage + cp $DIR/opentoonz.appimage $PUBLISH_DIR/OpenToonz-$VERSION-$DATE-$COMMIT-$PLATFORM_SUFFIX.appimage if [ -f "$PUBLISH_DIR/publish.sh" ]; then - "$PUBLISH_DIR/publish.sh" "$PUBLISH_DIR/OpenToonz-$VERSION-$COMMIT-$DATE-$PLATFORM_SUFFIX.appimage" + "$PUBLISH_DIR/publish.sh" "$PUBLISH_DIR/OpenToonz-$VERSION-$DATE-$COMMIT-$PLATFORM_SUFFIX.appimage" fi else echo "Version $VERSION-$COMMIT-$PLATFORM_SUFFIX already published"