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.

23 lines
895 B
Bash

#!/bin/bash
#install cmdtypist
gcc ../cmd_typist.c -o ../cmdtypist &&
sudo cp ../cmdtypist /usr/bin/cmdtypist &&
mkdir $HOME/cmdTypist &&
cp -r ../ $HOME/cmdTypist/ &&
sudo cp ../cmdtypist /usr/bin/cmdtypist &&
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