Skip to content

Commit

Permalink
Remove unnecessary code and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfison committed Dec 8, 2023
1 parent ba57a47 commit 11061ed
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 98 deletions.
4 changes: 0 additions & 4 deletions AppInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@ APPINST_APPS_LIST=(
'Chrome ; chrome'
'Docker ; docker'
'FFMPEG (Latest) ; ffmpeg'
'Node ; node'
'asdf ; asdf'
'React Native ; react_native'
'Vscode ; vscode'
'Azure Data Studio ; azure_data_studio'
'Discord ; discord'
'Microphone Noise Suppressor ; noise_suppressor'
'Extras (codecs, decompressors, etc) ; extras'
'Update AppInstall ; update'
)

Expand Down
16 changes: 0 additions & 16 deletions src/extras.sh

This file was deleted.

27 changes: 13 additions & 14 deletions src/git.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
#!/bin/bash

source $APPINST_BASEDIR/src/helpers/colors.sh &&
set -e

show_info_log "Installing required components!" &&
sudo apt install build-essential -y &&
source $APPINST_BASEDIR/src/helpers/colors.sh

show_info_log "Installing SSH" &&
sudo apt install ssh -y &&
show_info_log "Installing required components!"
sudo apt install -y build-essential ssh

show_info_log "Installing GIT" &&
sudo apt install git -y &&
show_info_log "Installing GIT"
sudo apt install -y git

show_info_input "Would you like to setup your git user now? [y:n]" &&
show_info_input "Would you like to setup your git user now? [y:n]"
read set_git_user

if [ "$set_git_user" != 'y' ]; then
show_success_log "Git successfully installed!"
exit 1;
exit
fi

show_info_input "Your git user:"
Expand All @@ -27,26 +26,26 @@ read git_email

if [ -z "$git_user" ] || [ -z "$git_email" ]; then
show_error_log "fill in the data correctly!"
exit 1;
exit 1
else
# Set git configs
git config --global user.name "$git_user" &&
git config --global user.name "$git_user"
git config --global user.email "$git_email"
fi

show_info_input "Would you like to generate a public SSH key now? [y:n]" &&
show_info_input "Would you like to generate a public SSH key now? [y:n]"
read set_ssh_key

if [ "$set_ssh_key" != 'y' ]; then
show_success_log "Git installed successfully"
echo " Username: $git_user"
echo " Email: $git_email"

exit 1;
exit 1
fi

# This creates a new ssh key, using the provided email as a label.
ssh-keygen -t ed25519 -C $git_email &&
ssh-keygen -t ed25519 -C "$git_email"
ssh_pub_key=$(cat $HOME/.ssh/ed25519.pub)

show_success_log "Git installed successfully"
Expand Down
29 changes: 0 additions & 29 deletions src/node.sh

This file was deleted.

24 changes: 0 additions & 24 deletions src/noise_suppressor.sh

This file was deleted.

11 changes: 0 additions & 11 deletions src/react_native.sh

This file was deleted.

0 comments on commit 11061ed

Please sign in to comment.