Skip to content

Commit a95298a

Browse files
committed
prevent yq from being in the image
1 parent 83d386a commit a95298a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/s-core-devcontainer/.devcontainer/s-core-local

src/s-core-devcontainer/.devcontainer/s-core-local/versions.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ fi
1818

1919
# Read tool versions and metadata into environment variables
2020
export $(/tmp/yq eval '.. | select((tag == "!!map" or tag == "!!seq") | not) | (path | join("_")) + "=" + .' "$1" | awk '!/=$/{print }' | xargs)
21+
22+
# Clean up
23+
trap 'rm -f /tmp/yq' EXIT

0 commit comments

Comments
 (0)