commit 1d3af82c873d57cf5e06319537281bef28ba1522 parent 93fd0cff81566691d969181c10cf9a8adb184f03 Author: Miniontoby <tobias.gaarenstroom@gmail.com> Date: Tue, 11 Jan 2022 13:35:38 +0000 fixed installer to check correctly for the launcer Diffstat:
M | install.sh | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/install.sh b/install.sh @@ -24,13 +24,13 @@ USERS=$(ls /home) for USER in $USERS; do cp /tmp/ksh_completion /home/$USER/.ksh_completions if [ \! -f /home/$USER/.kshrc ]; then - if grep -q "if [ -e ~/.ksh_completions ]; then . ~/.ksh_completions fi" /home/$USER/.profile; then + if grep -q "if \[ -e ~/.ksh_completions ]; then . ~/.ksh_completions fi" /home/$USER/.profile; then continue else echo "if [ -e ~/.ksh_completions ]; then . ~/.ksh_completions fi" >> /home/$USER/.profile fi else - if grep -q "if [ -e ~/.ksh_completions ]; then . ~/.ksh_completions fi" /home/$USER/.kshrc; then + if grep -q "if \[ -e ~/.ksh_completions ]; then . ~/.ksh_completions fi" /home/$USER/.kshrc; then continue else echo "if [ -e ~/.ksh_completions ]; then . ~/.ksh_completions fi" >> /home/$USER/.kshrc