Comments (6)
from rstunnel.
Agreed, we shouldn't hard-code the shell. What shell are you actually using?
I would use
#!/usr/bin/env bash
for portability
from rstunnel.
Not all embedded platforms seem to support env
.
But /bin/sh
seems guaranteed so I'll switch to that and test.
from rstunnel.
sh will not work, because you are using bashism:
./rstunnel: 254: [: unexpected operator some of the paths do not exist ./rstunnel: 266: [: unexpected operator some of the paths do not exist ./rstunnel: 266: [: unexpected operator ./rstunnel: 281: [: Linux: unexpected operator ./rstunnel: 281: [: Linux: unexpected operator ./rstunnel: 285: [: Linux: unexpected operator [FATAL] Sorry, your OS is not supported.
from my point of view: use #!/usr/bin/env bash or #!/bin/bash
from rstunnel.
from rstunnel.
Actually, leaving this closed and instead fixing the bashism in #22
from rstunnel.
Related Issues (18)
- Put daemon functionality into main script HOT 1
- Add syslog support
- Log management
- Error messages should go to STDERR HOT 1
- use getopts()
- nc on busybox still causes problems HOT 1
- If `dropbearmulti` is copied to `ssh` (since FAT32 doesn't support symlinks, like on an SD card) then determining if we are using Dropbear fails HOT 2
- support reverse tunnels HOT 2
- `$SSHPATH` is not used in the function to check if binaries are available
- Remove bashism(s) to finally rely only on simple `ash` and `sh` HOT 2
- Implement `netcat` functionality instead of `suckblow` HOT 1
- Implement HTTP webhooks as alternate method to mailing
- Support `dropbear` HOT 1
- Reverse dynamic port assignment HOT 1
- Check if port forwards are established otherwise restart tunnel
- add kill option (-k) HOT 1
- Alternate host support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rstunnel.