Skip to content

Commit

Permalink
Default script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hophiphip committed Aug 12, 2021
1 parent 5428e48 commit 8f41ffd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
)

const Port = ":8080"
const Script = "./script.sh"

type StreamType string

Expand Down Expand Up @@ -98,7 +99,7 @@ func WsHandler(w http.ResponseWriter, r *http.Request) {
}

func Log(conn *websocket.Conn) {
ws, err := newProcess("./sub.sh")
ws, err := newProcess(Script)
if err != nil {
log.Fatal(err)
}
Expand Down
5 changes: 5 additions & 0 deletions script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

echo "Enter text:"
read -r input
echo "Provided text: $input"
5 changes: 0 additions & 5 deletions sub.sh

This file was deleted.

0 comments on commit 8f41ffd

Please sign in to comment.