install.sh (raw)
1 2 3 4 5 6 7 8 9 10 11 |
#!/bin/sh if [ $(whoami) != "root" ]; then mkdir -p ~/bin/ cp kyanite.sh ~/bin/kyanite echo "kyanite has been installed to '${HOME}/bin/';" echo "You may want to add it to your PATH." else cp kyanite.sh /usr/bin/kyanite echo "kyanite has been installed to '/usr/bin/';" fi |