vaniacer / sshto

Small bash script to manage your ssh connections. It builds menu (via dialog) from your ~/.ssh/config. It can not only connect but also to run commands, copy files, tunnel ports.
MIT License
579 stars 59 forks source link

make it work with other bash locations than /bin/bash #23

Closed pforret closed 1 year ago

pforret commented 1 year ago

(e.g. MacOS with a more recent bash)

Running script files through /usr/bin/env has the advantage of automatically searching for the default version of the interpreter in the current environment. This way, we don’t need to search for it in a specific location in the system, as the paths may be different in other systems.

baeldung.com/linux/bash-shebang-lines

vaniacer commented 1 year ago

Ok, lets try it like that, thanks.