Skip to content

Commit

Permalink
fix(scripts): add missing $ in var dereference (#171)
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian authored May 5, 2024
1 parent c318567 commit 6f2b7e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/ts-patches.sh
Original file line number Diff line number Diff line change
@@ -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..."
Expand All @@ -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")
Expand Down

0 comments on commit 6f2b7e8

Please sign in to comment.