upgrade butler + typo fix

This commit is contained in:
Finn Ellis 2020-03-08 05:07:26 -07:00 committed by GitHub
parent a1e444d0f8
commit e244514515
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,16 +4,17 @@ set -e
mkdir -p ~/.config/itch
echo $BUTLER_CREDENTIALS > ~/.config/itch/butler_creds
butler upgrade
versionArguement=""
versionArgument=""
if [ "$VERSION" != "" ]
then
versionArguement="--userversion ${VERSION}"
versionArgument="--userversion ${VERSION}"
elif [ "$VERSION_FILE" != "" ]
then
versionArguement="--userversion-file ${VERSION_FILE}"
versionArgument="--userversion-file ${VERSION_FILE}"
fi
echo "butler push \"$PACKAGE\" $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArguement}"
butler push "$PACKAGE" $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArguement}
echo "butler push \"$PACKAGE\" $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArgument}"
butler push "$PACKAGE" $ITCH_USER/$ITCH_GAME:$CHANNEL ${versionArgument}