From aaa52a48b3f64b78acb0df621c3e42d64db8e2a4 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Wed, 26 Mar 2025 13:06:45 -0300 Subject: [PATCH] Add some comments/documentation --- dot_config/eget/executable_post_install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dot_config/eget/executable_post_install.sh b/dot_config/eget/executable_post_install.sh index 0e899b3..3b341fd 100644 --- a/dot_config/eget/executable_post_install.sh +++ b/dot_config/eget/executable_post_install.sh @@ -14,18 +14,31 @@ pushd $HOME/.local/bin > /dev/null # Handle 7z if compgen -G "7z*tar*" > /dev/null; then + # Extract 7z tar xf 7z*tar* 7zzs + # Remove/rename extracted 7zzs (7z statically linked) to 7z mv -f 7zzs 7z + # Remove archive rm -r 7z*tar* fi # Handle bash_completion if compgen -G "bash-completion*tar*" > /dev/null; then + # Extract bash-completion tar xf bash-completion*tar* + + # Remove old bash_completion + rm -r bash_completion bash_completion.d completions + + # Move new bash_completion mv -f bash-completion*/bash_completion . mv -f bash-completion*/bash_completion.d . mv -f bash-completion*/completions . + + # Remove extracted files rm -r bash-completion-* + + # Make bash_completion executable chmod +x bash_completion fi