mirror of https://github.com/n05la3/cmdtypist
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
847 B
Bash
22 lines
847 B
Bash
7 years ago
|
#!/bin/bash
|
||
|
#install cmdtypist
|
||
|
sudo cp ../cmdtypist /usr/bin/cmdtypist &&
|
||
|
mkdir $HOME/cmdtypist &&
|
||
|
cp -r ../ $HOME/cmdtypist/ &&
|
||
|
sudo cp ../cmdtypist /usr/bin/ &&
|
||
|
sudo chmod +x /usr/bin/cmdtypist &&
|
||
|
(echo "CMDTYPIST successfully compiled and installed, learn how to use cmdtypist commands by running 'cmdtypist --help'"; exit 0) ||
|
||
|
(c=$?; echo "CMDTYPIST was unable to install: "; (exit $c))
|
||
|
|
||
|
|
||
|
# if [echo "Enter root password: "]; then
|
||
|
# if [sudo gcc ./cmdtypist.c -o ./cmdtypist]; then
|
||
|
# if [[ sudo mkdir /opt/cmdtypist ]]; then
|
||
|
# if [[ sudo cp -r . /opt/cmtypist/ ]]; then
|
||
|
# echo "Cmdtypist successfully compiled and installed, learn how to use cmdtypist commands by running 'cmdtypist --help'"
|
||
|
# else
|
||
|
# echo "cmdtypist was unable to install, make sure the directory /opt exist and try again"
|
||
|
# fi
|
||
|
# fi
|
||
|
# fi
|
||
|
# fi
|