Skip to content

Commit 9caebe1

Browse files
author
Brian Genisio
committed
cleaning up some scripts
1 parent 4f2d55d commit 9caebe1

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

check_spreadsheet.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
rm spreadsheet.json
3+
rm -fspreadsheet.json
44
node spreadsheetToJson.js
55
cat spreadsheet.json

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dependencies": {
3-
"axios": "^1.11.0",
4-
"dotenv": "^17.2.2",
5-
"express": "^5.1.0"
3+
"axios": "1.11.0",
4+
"dotenv": "17.2.2",
5+
"express": "5.1.0"
66
}
77
}

start_spreadsheet.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,18 @@ fi
1818

1919

2020
# 3. Install missing packages
21-
echo "📦 Installing required npm packages..."
21+
echo "📦 Checking npm packages..."
2222

2323
npm install -g pm2
2424

25-
npm install dotenv express axios
26-
27-
echo "✅ Packages installed."
25+
# Only install if node_modules doesn't exist
26+
if [ ! -d "node_modules" ]; then
27+
echo "📦 Installing npm packages..."
28+
npm install
29+
echo "✅ Packages installed."
30+
else
31+
echo "✅ Packages already installed (node_modules exists)."
32+
fi
2833

2934
# 4. Start proxy (if not already)
3035
pm2 start proxyServer.js --name proxy-service || true

0 commit comments

Comments
 (0)