From ee5e07e162fdfe916e18e82da05f957c4cf950d6 Mon Sep 17 00:00:00 2001 From: ILOVEPIE Date: Mon, 15 Apr 2024 13:26:03 -0700 Subject: [PATCH] Fixup build script for automated build enviroment. --- scripts/commands/update-dependencies.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/commands/update-dependencies.sh b/scripts/commands/update-dependencies.sh index 3b2d5da..77703f4 100644 --- a/scripts/commands/update-dependencies.sh +++ b/scripts/commands/update-dependencies.sh @@ -6,7 +6,8 @@ if [ ! -d "$TEMP_DIR/codepage" ]; then rm -rf "$TEMP_DIR/codepage" git clone "https://git.sheetjs.com/sheetjs/js-codepage.git" "$TEMP_DIR/codepage" fi -pushd "$TEMP_DIR/codepage" +CUR_DIR ="$PWD" +cd "$TEMP_DIR/codepage" printf '%s\n' "Building codepage dependency..." | tee -a $LOG_FILE git pull 2>&1 | tee -a $LOG_FILE make 2>&1 | tee -a $LOG_FILE @@ -16,4 +17,4 @@ cat "$TEMP_DIR/codepage.js" "$TEMP_DIR/codepage/cputils.js" | sed "s#require\('. printf '%s\n' '}).call(sabre);' >> "$PROJECT_SOURCE_DIR/lib/codepage.js" rm -f "$TEMP_DIR/codepage.js" printf '%s\n' "Finished building codepage dependency." | tee -a $LOG_FILE -popd \ No newline at end of file +cd "$CUR_DIR" \ No newline at end of file