diff --git a/inst b/inst index 0904785..eafa2a4 100755 --- a/inst +++ b/inst @@ -28,7 +28,6 @@ save_desktop_entry() { echo "This operating system is not yet supported." exit 1 fi - } help() { @@ -216,6 +215,13 @@ check_theme() { fi } +install-extra() { + if [ -f "install-extra" ]; then + echo "Running install-extra..." + sudo ./install-extra + fi +} + check_args() { check_sudo check_theme @@ -239,6 +245,7 @@ check_args() { PROJECT_NAME=$(pwd | cut -d '/' -f5) install_dependencies install "$PROJECT_NAME" + install-extra fi # User argument provided @@ -263,6 +270,7 @@ check_args() { PROJECT_NAME=$1 install_dependencies cd $PROJECT_NAME + install-extra fi fi } diff --git a/install b/install index 727a513..11bd39d 100755 --- a/install +++ b/install @@ -141,16 +141,23 @@ setup_environment() { } is_root -if [[ $# -eq 1 ]]; then - if [[ $1 == "-h" || $1 == "--help" ]]; then - help + if [[ $# -eq 1 ]]; then + if [[ $1 == "-h" || $1 == "--help" ]]; then + help + fi + fi + +more_install + if [ -f "install-extra" ]; then + echo "Running install-extra..." + sudo ./install-extra fi -fi # Install the scripts echo "Installing scripts..." sudo cp * /usr/local/bin setup_environment +more_install echo "Installation complete. Please restart your terminal to use the new commands, or run 'source ~/.zshrc'." echo "To remove the scripts, simply delete the files in /usr/local/bin and remove the aliases from your .zshrc file."