Skip to content

Commit a3547cb

Browse files
committed
use consistent double-quotes
1 parent 8421023 commit a3547cb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/run.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
# Set the directory of the database in a variable
55
DB_PATH=/data/users.$MODE.sqlite
66

7-
if [ $MODE != 'development' ]; then
7+
if [ $MODE != "development" ]; then
88
# This should be before running migrations otherwise it results in empty database after `rm -rf ./data`
99
# Restore the database if it does not already exist.
1010
if [ -f $DB_PATH ]; then
@@ -24,10 +24,10 @@ MIGRATE_DATABASE=false
2424
FIRST_TIME_MIGRATION="FIRST_TIME_MIGRATION_$MODE"
2525
if [[ ! -e /data/$FIRST_TIME_MIGRATION ]] || [[ $MIGRATE_DATABASE = true ]]; then
2626
# Place your script that you only want to run on first startup.
27-
echo 'Initialize database first time only'
27+
echo "Initialize database first time only"
2828
touch /data/$FIRST_TIME_MIGRATION
2929

30-
if [ $MODE != 'development' ]; then
30+
if [ $MODE != "development" ]; then
3131
# Only install dependencies for drizzle migration. Those are not bundled via `next build` as its optimized to only install dependencies that are used in next.js app
3232
echo "Installing $MODE dependencies"
3333
cd scripts
@@ -37,12 +37,12 @@ if [[ ! -e /data/$FIRST_TIME_MIGRATION ]] || [[ $MIGRATE_DATABASE = true ]]; the
3737
cd ..
3838
fi
3939

40-
echo "Migrating '/data/users.$MODE.sqlite'"
41-
if [ $MODE = 'production' ]; then
40+
echo "Migrating /data/users.$MODE.sqlite"
41+
if [ $MODE = "production" ]; then
4242
pnpm db:migrate:prod & PID=$!
4343
# Wait for migration to finish
4444
wait $PID
45-
elif [ $MODE = 'staging' ]; then
45+
elif [ $MODE = "staging" ]; then
4646
pnpm db:migrate:staging & PID=$!
4747
wait $PID
4848
else
@@ -53,7 +53,7 @@ fi
5353

5454
echo "Starting $MODE server..."
5555

56-
if [ $MODE = 'development' ]; then
56+
if [ $MODE = "development" ]; then
5757
pnpm dev
5858
else
5959
# Run litestream with your app as the subprocess.

0 commit comments

Comments
 (0)