Skip to content

Commit

Permalink
ptyall path for wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
ariary committed Dec 7, 2022
1 parent c9f9636 commit 8cc730d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ need `nim`:

```shell
git clone https://github.com/ariary/tacos.git && cd tacos
make build.wrap
make build.wrap
mkdir -p $HOME/.tacos
mv light-pty4all/socat-forker-windows.sh.tpl $HOME/.tacos
mv light-pty4all/socat-forker.sh.tpl $HOME/.tacos
```

## Alternatives
Expand Down
7 changes: 4 additions & 3 deletions wrap/src/wrap.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import terminal


const TACOS_DIRPATH: string = getHomeDir()&".tacos/"
const PTY4ALL: string = TACOS_DIRPATH&"light-pty4all/"
# const PTY4ALL: string = TACOS_DIRPATH&"light-pty4all/"
const PTY4ALL: string = TACOS_DIRPATH

proc randomStr():string=
randomize()
const lowerCaseAscii = 97..122
const lowerCaseAscii = 97..122
let myRandom = 8.newSeqWith(lowerCaseAscii.rand.char).join
return myRandom

Expand Down Expand Up @@ -109,7 +110,7 @@ proc Wrap(
script = fmt"{pwd}/{script}"
setFilePermissions(script, {fpUserWrite, fpUserRead, fpUserExec})
except OSError:
styledEcho(fgRed,"failed copying",PTY4ALL&script,"in",getCurrentDir()&"/"&script)
styledEcho(fgRed,"failed copying ",PTY4ALL&script,"in ",getCurrentDir()&"/"&script)
quit(QuitFailure)

## Tunneling launching
Expand Down

0 comments on commit 8cc730d

Please sign in to comment.