Skip to content

Commit

Permalink
fix: infisical dump script (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdenComp authored Oct 7, 2023
1 parent c0c4104 commit 64160c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/dump_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if [ -z "$1" ]
exit 1
fi
INFISICAL_ENVIRONMENT=$1
GIT_ROOT_PATH=$(git rev-parse --show-toplevel)

# Define paths to dump
paths=( \
Expand All @@ -24,7 +25,7 @@ clear='\033[0m'
INDEX=1
for path in "${paths[@]}"
do
infisical export --env="$INFISICAL_ENVIRONMENT" --path="$path" > "$path"$file
infisical export --env="$INFISICAL_ENVIRONMENT" --path="$path" > "$GIT_ROOT_PATH/$path"$file
echo -e "${green}Dumped ${path}${file} ($INDEX/${#paths[@]}) ${clear}"
((INDEX++))
done

0 comments on commit 64160c2

Please sign in to comment.