Skip to content

Commit c890cd9

Browse files
committed
sed fix and echo added on case 4
1 parent b86ee17 commit c890cd9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

netepscript.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ case "$db_choice" in
185185
echo -e "\n# MongoDB Configuration\nMONGO_URI=mongodb://localhost:27017/your_database" >> .env
186186
;;
187187
"4")
188-
echo
188+
echo "Installing typeORM dependencies..."
189189
bash typeOrm.sh
190190
;;
191191
"5")
@@ -197,7 +197,11 @@ case "$db_choice" in
197197
esac
198198

199199
PACKAGE_JSON="./package.json"
200-
sed -i 's/\^//g' "$PACKAGE_JSON"
200+
if [[ "$OSTYPE" == "darwin"* ]]; then
201+
sed -i '' 's/\^//g' "$PACKAGE_JSON"
202+
else
203+
sed -i 's/\^//g' "$PACKAGE_JSON"
204+
fi
201205

202206
echo -e "${GREEN}=========================================================${NC}"
203207
echo -e "${RED} ${BOLD}Follow us on GitHub:${NC}"

0 commit comments

Comments
 (0)