Skip to content

Commit

Permalink
Refined: Update openssl_installer.sh to remove git-related directories
Browse files Browse the repository at this point in the history
- Added command to delete `$HOME/openssl/.git`, `$HOME/openssl/.github`, and `$HOME/openssl/.gitignore` directories post-update.
- Retained original functionality of checking and appending alias configurations in `~/.bashrc`.
- Ensured streamlined cleanup to prevent retention of unnecessary git directories in `$HOME/openssl` directory.
- Updated script version to 1.1.1 and timestamp for clarity in version tracking.

modified: openssl_installer.sh
  • Loading branch information
homelab-alpha committed Oct 29, 2024
1 parent b2ab6d1 commit f683738
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openssl_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Script Name: openssl_installer.sh
# Author: GJS (homelab-aplha)
# Date: 2024-06-05T08:42:08+02:00
# Version: 1.0.1
# Date: 2024-10-29T08:44:08+01:00
# Version: 1.1.1

# Description:
# This script adds specified content to the ~/.bashrc file, avoiding duplication.
Expand Down Expand Up @@ -38,6 +38,8 @@ if ! grep -qF "if [ -f $ALIASES_PATH ]; then" "$BASHRC_PATH"; then
} >>"$BASHRC_PATH"
fi

rm -rf "$HOME/openssl/.git" "$HOME/openssl/.github" "$HOME/openssl/.gitignore"

echo "Installation completed. .bashrc has been updated and the shell has been restarted."

exit

0 comments on commit f683738

Please sign in to comment.