mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 02:52:20 +00:00
Change option --refresh to --clean
This commit is contained in:
@@ -96,7 +96,7 @@ with eventual underscores (i.e. [a-zA-Z0-9\_]), otherwise you'll get errors.
|
||||
`--package-version` Set the version of your package.
|
||||
|
||||
#### OTHERS
|
||||
`--refresh` Refresh the cache located in `~/.cache/love-release`.
|
||||
`--clean` Clean the cache located in `~/.cache/love-release`.
|
||||
One can replace the Love files there.
|
||||
`--debug` Dump the scripts variables without making releases.
|
||||
|
||||
|
@@ -128,8 +128,8 @@ Update the love-android-sdl2.git repository used in the cache.
|
||||
Set the version of your package.
|
||||
.SH OTHERS
|
||||
.TP
|
||||
.B \-\-refresh
|
||||
Refresh the cache located in \fI~/.cache/love-release\fR.
|
||||
.B \-\-clean
|
||||
Clean the cache located in \fI~/.cache/love-release\fR.
|
||||
One can replace the Love files there.
|
||||
.TP
|
||||
.B \-\-debug
|
||||
|
@@ -72,7 +72,7 @@ LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9")
|
||||
|
||||
# Global variables
|
||||
ARGS=( "$@" )
|
||||
SCRIPT_ARGS="$SCRIPT_ARGS h; v: refresh help"
|
||||
SCRIPT_ARGS="$SCRIPT_ARGS h; v: clean help"
|
||||
SCRIPT_ARGS=$(printf '%s\n' $SCRIPT_ARGS | sort -u)
|
||||
|
||||
PROJECT_FILES=
|
||||
@@ -117,7 +117,7 @@ do
|
||||
LOVE_VERSION_MAJOR=$(echo "$LOVE_VERSION" | grep -Eo '^[0-9]+\.?[0-9]*')
|
||||
LOVE_GT_080=$(float_test "$LOVE_VERSION_MAJOR >= 0.8")
|
||||
LOVE_GT_090=$(float_test "$LOVE_VERSION_MAJOR >= 0.9")
|
||||
elif [ "$OPTOPT" = "refresh" ]; then
|
||||
elif [ "$OPTOPT" = "clean" ]; then
|
||||
rm -rf "$MAIN_CACHE_DIR"
|
||||
fi
|
||||
done
|
||||
|
Reference in New Issue
Block a user