Skip to content

Commit 06a84ef

Browse files
committed
Improve run-miner.sh
1 parent 07ce9f0 commit 06a84ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run-miner.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -eu
44

55
if ! command -v jq &> /dev/null
6-
then
6+
then
77
echo "Installing jq"
88
sudo apt install -y jq
99
fi
@@ -28,7 +28,7 @@ fi
2828
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
2929

3030
echo "Launching the miner and restart automatically if it crashes"
31-
until $SCRIPT_DIR/bin/gpu-miner; do
31+
until $SCRIPT_DIR/bin/gpu-miner $*; do
3232
echo "Miner crashed with exit code $?. Respawning.." >&2
3333
sleep 1
3434
done

0 commit comments

Comments
 (0)