fix: cd dirname instead of failing regex

This commit is contained in:
ange 2025-02-02 01:04:40 +00:00
parent 252b4fce46
commit f7f53cb8af
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -1,7 +1,7 @@
#!/bin/sh -ex
#shellcheck disable=SC1091
cd "./${INPUT_DOCKERFILE%/*}"
cd "$(dirname "$INPUT_DOCKERFILE")"
[ -f .env ] && . ./.env