Skip to content

Commit a3a09ed

Browse files
committed
chore: update scripts/publish.sh
1 parent d9d7623 commit a3a09ed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/publish.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ if ! test -f ${rockspec}; then
2121
exit 1
2222
fi
2323

24-
luarocks upload rockspecs/lua-evdev-${version}.rockspec --api-key=${LUAROCKS_API_KEY} $@
24+
declare force_upload=""
25+
26+
if [[ "${LUAROCKS_UPLOAD_FORCE}" = "true" ]]; then
27+
force_upload="--force"
28+
fi
29+
30+
luarocks upload --api-key=${LUAROCKS_API_KEY} ${force_upload} ${rockspec}

0 commit comments

Comments
 (0)