| Hash | Commit message | Author | Date | Files | + | - |
1 | commit 26b377b2cf9d84c425f1169cae300aea2415a6d3 |
2 | Author: Connor Etherington <[email protected]> |
3 | Date: Wed Apr 26 02:23:56 2023 +0200 |
4 | |
5 | Auto-Commit Update - 20230426 |
6 | --- |
7 | terminal-headers.install | 15 ++++++++++----- |
8 | 1 file changed, 10 insertions(+), 5 deletions(-) |
9 | |
10 | diff --git a/terminal-headers.install b/terminal-headers.install |
11 | index 99f88cd..d07d62f 100644 |
12 | --- a/terminal-headers.install |
13 | +++ b/terminal-headers.install |
14 | @@ -1,21 +1,26 @@ |
15 | post_install() { |
16 | - |
17 | + |
18 | echo -e "\n\n\e[1;33m[+]\e[0;1;32m Add one of the header scripts to your shells rc file to\ |
19 | apply it upon opening a terminal.\e[1;33m\n\n[+]\e[0;1;32m Scripts located in\e[0;1;35m\ |
20 | - '/opt/terminal-headers'\e[0m\n\n" |
21 | + '/opt/terminal-headers'\e[0m\n\n" |
22 | |
23 | -for x in `ls '/opt/terminal-headers'` ; do |
24 | +for x in `ls '/opt/terminal-headers'` ; do |
25 | ln -s /opt/terminal-headers/$x /usr/bin/$x >/dev/null 2>&1 |
26 | done |
27 | |
28 | -for x in `ls '/opt/terminal-headers'` ; do |
29 | +for x in `ls '/opt/terminal-headers'` ; do |
30 | ln -s /opt/terminal-headers/$x /usr/bin/$x >/dev/null 2>&1 |
31 | done |
32 | |
33 | } |
34 | |
35 | +post_upgrade() { |
36 | + post_install |
37 | +} |
38 | + |
39 | + |
40 | pre_remove() { |
41 | - |
42 | + |
43 | ls /opt/terminal-headers | grep "Header$" | while read -r HEADER ; do |
44 | |
45 | echo -e "\e[1;31m[-] \e[37mRemoving \e[36m"$HEADER"'s \e[37msymbolic link from /usr/bin" |