Skip to content

Commit d0cd0f8

Browse files
committed
bash cd
1 parent b5c4d74 commit d0cd0f8

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

terraform/package_lambda.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
#!/bin/bash
22
set -e
33

4-
echo "🚀 Packaging Lambda..."
4+
echo "🚀 Packaging Lambda1..."
5+
6+
PROJECT_DIR="${1:-.}" # Default to current dir if not provided
7+
8+
# show current directory
9+
echo "📂 Current directory: $(pwd)
10+
Project directory: $PROJECT_DIR"
11+
# list contents of the project directory
12+
echo "📂 Contents of project directory: $(ls -1 $PROJECT_DIR)"
13+
14+
echo "🚀 Packaging Lambda from $PROJECT_DIR..."
15+
16+
17+
cd "$PROJECT_DIR"
18+
# Ensure we are in the correct directory
19+
echo "📂 Current directory after change: $(pwd)"
520

621
# Clean previous build
722
rm -rf build lambda_package.zip

0 commit comments

Comments
 (0)