Skip to content

Commit 6046791

Browse files
Support shorthand for package-manager option (#57)
1 parent 877fd7e commit 6046791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
2929
len=`echo $INPUT_PM | wc -c`
3030
if [ $len -gt 1 ]; then
3131
PACKAGE_MANAGER=$(echo "$INPUT_PM" | grep -o '^[^@]*')
32-
VERSION=$(echo "$INPUT_PM" | grep -o '@.*' | sed 's/^@//')
32+
VERSION=$(echo "$INPUT_PM" | { grep -o '@.*' || true; } | sed 's/^@//')
3333
# Set default VERSION if not provided
3434
if [ -z "$VERSION" ]; then
3535
VERSION="latest"

0 commit comments

Comments
 (0)