Switch from pushd to cd.

This commit is contained in:
redxef 2022-08-29 18:53:43 +02:00
parent 8f9ff6d271
commit 04f2c07834
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921
2 changed files with 2 additions and 2 deletions

2
src/in
View file

@ -7,6 +7,6 @@ set -eu
oci_dir="$(mktemp -d)"
crane pull --format=oci "$REPOSITORY:@$(jq -r .version "$INPUT_FILE")" "$oci_dir"
pushd "$oci_dir" && tar cf "$1/image.tar" && popd
cd "$oci_dir" && tar cf "$1/image.tar" && cd -
echo "$(jq -r .version < "$INPUT_FILE")"

View file

@ -7,6 +7,6 @@ set -eu
IMAGE_REFS_FILE="$(mktemp -t)"
oci_dir="$(mktemp -d)"
pushd "$oci_dir" && tar xf "$1/$(jq -r .params.image < "$INPUT_FILE")" && popd
cd "$oci_dir" && tar xf "$1/$(jq -r .params.image < "$INPUT_FILE")" && cd -
crane push "$oci_dir" "$REPOSITORY:$TAG" --image-refs="$IMAGE_REFS_FILE"
sed 's/^[^@]*@//' < "$IMAGE_REFS_FILE"