Skip to content

Commit cd1564b

Browse files
committed
Ensure replit install script is idempotent
Change-Id: I3eb6984fe49ec0266f396811010169ef27697e4a
1 parent 80edbfb commit cd1564b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build/replit-after-boot.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cd $ROOTDIR
1313
chmod a+rx $ROOTDIR/build/helper
1414

1515
# Show configuration progress with a temporary directory we set up.
16-
mkdir .INSTALLING_1_of_4
16+
mkdir -p .INSTALLING_1_of_4
1717

1818
cd /home/runner
1919
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
@@ -23,15 +23,15 @@ php composer-setup.php --install-dir=/home/runner/bin --filename=composer
2323
php -r "unlink('composer-setup.php');"
2424
cd $ROOTDIR
2525

26-
mkdir .INSTALLING_2_of_4
26+
mkdir -p .INSTALLING_2_of_4
2727

2828
install-pkg php-mbstring
2929

30-
mkdir .INSTALLING_3_of_4
30+
mkdir -p .INSTALLING_3_of_4
3131

3232
install-pkg php-curl
3333

34-
mkdir .INSTALLING_4_of_4
34+
mkdir -p .INSTALLING_4_of_4
3535

3636
export PHPRC=$ROOTDIR/build/replit.ini
3737
export PATH=$PATH:/home/runner/bin:$ROOTDIR/vendor/bin

0 commit comments

Comments
 (0)