Skip to content

Commit

Permalink
chore: support fish for setup (#2545)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Jan 15, 2024
1 parent c763ee1 commit 9cfc4cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/docker/setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#! /bin/bash

export NODE_VERSION=$(cat .nvmrc)
find config -name '.*-version' | xargs -I{} sh -c 'l=$(echo "{}" | sed -e "s/-/_/;s/config\/\.//" | tr "[a-z]" "[A-Z]");echo "export $l=$(cat {})"'

while read line; do
arr=($line)
export $(echo ${arr[1]} | sed -e "s/-/_/;s/config\/\.//" | tr "[a-z]" "[A-Z]")=${arr[0]}
done < <(find config -name '.*-version' -exec jq --raw-input -r '. + " " + input_filename' {} \;)

docker compose up -d

0 comments on commit 9cfc4cc

Please sign in to comment.