Skip to content

Commit

Permalink
fix: script
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Jan 31, 2024
1 parent 683ba8a commit 39b2622
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tokyo-draft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ start() {
set -a
. $ENV
set +a
screen -S tokyo-drafter -d -m cargo run -r -- --pidfile $PIDFILE

CMD="$(which tokyo-draft)"
if [ -z "$CMD" ]; then
CMD="$CARGO run -r -- --pidfile $PIDFILE"
fi

screen -S tokyo-draft -d -m $CMD

return $?
}
Expand Down

0 comments on commit 39b2622

Please sign in to comment.