From a7638bee111ea87849cd7f69969fe513f2a3b0fd Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 23 Feb 2021 14:59:44 -0500 Subject: [PATCH] install: Fix bash installation / Linux installation Linux `find` is really unhappy about -maxdepth being after -type. This patch surpresses those errors and adds a necessary ENV export in the ~/.bash_profile so that the .bashrc is found for login shells. --- etc/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/install.sh b/etc/install.sh index 0263cc7..fa11a72 100755 --- a/etc/install.sh +++ b/etc/install.sh @@ -4,15 +4,16 @@ set -e DIR="$(dirname "$(dirname "$(readlink -f "$0")")")" . "$DIR/etc/skel.sh" +add .bash_profile "export ENV=\"$DIR/.shrc\"" add .bash_profile "[ -e \"$DIR/.bashrc\" ] && source \"$DIR/.bashrc\"" # Generic .dotfiles -for f in `find $DIR -type f -maxdepth 1 -name '.*' | grep -v git | sed "s#^$DIR/##"`; do +for f in `find $DIR -maxdepth 1 -name '.*' -type f | grep -v git | sed "s#^$DIR/##"`; do "$DIR/bin/lnkdot" $f done # Generic .config dirs -for d in `find $DIR/.config -type d -maxdepth 1 -mindepth 1 | sed "s#^$DIR/##"`; do +for d in `find $DIR/.config -maxdepth 1 -mindepth 1 -type d | sed "s#^$DIR/##"`; do "$DIR/bin/lnkdot" $d done -- libgit2 0.28.4