commit a7638bee111ea87849cd7f69969fe513f2a3b0fd (patch)
parent 7e73cfc9c57bd60374ba626a7fe56a242df4efd9
Author: Alex Karle <alex@alexkarle.com>
Date: Tue, 23 Feb 2021 14:59:44 -0500
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.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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