Skip to content

Commit

Permalink
fix ncat spawning wrong bash
Browse files Browse the repository at this point in the history
  • Loading branch information
velzie committed Jul 1, 2024
1 parent f425017 commit b002513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ PORT=${PORT:-4206}
# we want to keep stdout for debugging, so we redirect it to fd 4, and use fd 3 for the response
# fd 4 of ncat then goes back to stdout so everything works

ncat -k -l -p "$PORT" -c ". ./lib/main.sh; ( do_routes>&4 ) 3>&1" 4>&1
ncat -k -l -p "$PORT" -c "bash -c '. ./lib/main.sh; ( do_routes>&4 ) 3>&1'" 4>&1

0 comments on commit b002513

Please sign in to comment.