From 6f2b7e8fa0f834cdf73379ea842b03425970f22a Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Sat, 4 May 2024 20:33:47 -0400 Subject: [PATCH] fix(scripts): add missing $ in var dereference (#171) Signed-off-by: Artur Troian --- script/ts-patches.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/ts-patches.sh b/script/ts-patches.sh index 45a98077..90845e73 100755 --- a/script/ts-patches.sh +++ b/script/ts-patches.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash -set -eo pipefail +set -xeo pipefail generated_dir="$AKASH_TS_ROOT/src/generated" -tmp_dir="AKASH_DEVCACHE_TS_TMP_PATCHES" +tmp_dir="$AKASH_DEVCACHE_TS_TMP_PATCHES" if [ ! -d "$generated_dir" ]; then echo "Directory $generated_dir does not exist. Skipping..." @@ -12,6 +12,7 @@ fi preserve_patches() { echo "Preserving TypeScript patches..." + find "$generated_dir" -type f -name "*.original.ts" | while read -r src_file; do src_file=${src_file//.original/} gen_dir=$(dirname "$src_file")