2021-11-03 13:36:19 +01:00
|
|
|
#!/bin/bash
|
2022-04-27 20:08:16 +02:00
|
|
|
[[ $(uname) = "Linux" ]] && grep "sshin" ~/.bashrc >/dev/null || echo "alias sshin=\"~/gitclones/sshin/sshin\"" >> ~/.bashrc; echo "run \"source ~/.bashrc\"";exit
|
2021-11-03 13:36:19 +01:00
|
|
|
|
|
|
|
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/"
|