Skip to content

Commit dc41a9b

Browse files
committed
scripts: Add caffeinate to bootstrap script
Hopefully this works... Signed-off-by: Hector Martin <[email protected]>
1 parent 6a6e772 commit dc41a9b

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

scripts/bootstrap-dev.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ echo
4242
if [ "$USER" != "root" ]; then
4343
echo "The installer needs to run as root."
4444
echo "Please enter your sudo password if prompted."
45-
exec sudo -E ./install.sh "$@"
45+
exec caffeinate -dis sudo -E ./install.sh "$@"
4646
else
47-
exec ./install.sh "$@"
47+
exec caffeinate -dis ./install.sh "$@"
4848
fi

scripts/bootstrap-prod.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ echo
4242
if [ "$USER" != "root" ]; then
4343
echo "The installer needs to run as root."
4444
echo "Please enter your sudo password if prompted."
45-
exec sudo -E ./install.sh "$@"
45+
exec caffeinate -dis sudo -E ./install.sh "$@"
4646
else
47-
exec ./install.sh "$@"
47+
exec caffeinate -dis ./install.sh "$@"
4848
fi

scripts/bootstrap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ echo
3535
if [ "$USER" != "root" ]; then
3636
echo "The installer needs to run as root."
3737
echo "Please enter your sudo password if prompted."
38-
exec sudo -E ./install.sh "$@"
38+
exec caffeinate -dis sudo -E ./install.sh "$@"
3939
else
40-
exec ./install.sh "$@"
40+
exec caffeinate -dis ./install.sh "$@"
4141
fi

0 commit comments

Comments
 (0)