From 62f77aeb71501da4976593892e402f83c556869c Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Fri, 22 Oct 2021 17:57:50 -0400 Subject: [PATCH] Fix installer --- script-install-manual-scripts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script-install-manual-scripts b/script-install-manual-scripts index 85296236..c3d97d5c 100755 --- a/script-install-manual-scripts +++ b/script-install-manual-scripts @@ -9,16 +9,16 @@ parent=${parent%/*} is_root -git rev-parse --is-inside-git-dir || echo "You must execute this script from the hartmanlab git directory" && exit 1 +#git rev-parse --is-inside-git-dir || echo "You must execute this script from the hartmanlab git directory" && exit 1 -install -m 644 functions /usr/local/bin/ +install -m 644 "$parent"/functions /usr/local/bin/ -for script in script-*; do +for script in "$parent"/script-*; do cp -f "$script" /usr/local/bin/ done # Install manual -manual="README.html" +manual="$parent/README.html" [[ ! -f "$manual" ]] && echo "No manual found, skipping!" && exit 1 for homedir in /home/*; do @@ -26,6 +26,6 @@ for homedir in /home/*; do for f in "${remove[@]}"; do rm -f "${homedir}/Desktop/$f" done - ln -fs "$PWD/$manual" "${homedir}/Desktop/$manual" + ln -fs "$manual" "${homedir}/Desktop/$manual" done