Fix installer
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user