update to inst for install-extra scripts

This commit is contained in:
Josh Ashton
2024-02-16 20:59:09 -07:00
parent 4f29567005
commit d0e183a2b8
2 changed files with 20 additions and 5 deletions
+9 -1
View File
@@ -28,7 +28,6 @@ save_desktop_entry() {
echo "This operating system is not yet supported." echo "This operating system is not yet supported."
exit 1 exit 1
fi fi
} }
help() { help() {
@@ -216,6 +215,13 @@ check_theme() {
fi fi
} }
install-extra() {
if [ -f "install-extra" ]; then
echo "Running install-extra..."
sudo ./install-extra
fi
}
check_args() { check_args() {
check_sudo check_sudo
check_theme check_theme
@@ -239,6 +245,7 @@ check_args() {
PROJECT_NAME=$(pwd | cut -d '/' -f5) PROJECT_NAME=$(pwd | cut -d '/' -f5)
install_dependencies install_dependencies
install "$PROJECT_NAME" install "$PROJECT_NAME"
install-extra
fi fi
# User argument provided # User argument provided
@@ -263,6 +270,7 @@ check_args() {
PROJECT_NAME=$1 PROJECT_NAME=$1
install_dependencies install_dependencies
cd $PROJECT_NAME cd $PROJECT_NAME
install-extra
fi fi
fi fi
} }
+7
View File
@@ -147,10 +147,17 @@ if [[ $# -eq 1 ]]; then
fi fi
fi fi
more_install
if [ -f "install-extra" ]; then
echo "Running install-extra..."
sudo ./install-extra
fi
# Install the scripts # Install the scripts
echo "Installing scripts..." echo "Installing scripts..."
sudo cp * /usr/local/bin sudo cp * /usr/local/bin
setup_environment setup_environment
more_install
echo "Installation complete. Please restart your terminal to use the new commands, or run 'source ~/.zshrc'." 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." echo "To remove the scripts, simply delete the files in /usr/local/bin and remove the aliases from your .zshrc file."