8 lines
390 B
Bash
8 lines
390 B
Bash
#!/bin/bash
|
|
[[ $(uname) = "Linux" ]] || echo "alias sshin=\"~/sshin/sshin\"" >> ~/.bashrc; echo "run \"source ~/.bashrc\"";exit
|
|
|
|
PREFIX=~/.local/
|
|
mkdir $PREFIX/share/sshin
|
|
[[ -e $PREFIX/share/sshin/port_association ]] || cp port_association $PREFIX/share/sshin/
|
|
cp sshin $PREFIX/bin/ || echo "Error in copying executable to $PREFIX/bin" && echo "if on linux, run: sudo cp sshin /usr/bin/"
|