Update scripts
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
parent="${BASH_SOURCE[0]}"
|
||||
parent=${parent%/*}
|
||||
|
||||
reload=0
|
||||
[[ -f $parent/script-functions ]] && . "$parent"/script-functions || reload=1
|
||||
|
||||
sourcedir="/home/roessler/shared/hartmanlab"
|
||||
original_dir="$PWD"
|
||||
|
||||
@@ -12,13 +15,12 @@ if [[ "$original_dir" != "$sourcedir" ]]; then
|
||||
pushd "$sourcedir" || exit $?
|
||||
fi
|
||||
|
||||
[[ -f functions ]] && . functions || exit 1
|
||||
(( reload )) && [[ -f $parent/script-functions ]] && . "$parent"/script-functions || exit 1
|
||||
|
||||
is_root
|
||||
|
||||
install -m 644 ./functions /usr/local/bin/
|
||||
|
||||
for script in script-*; do
|
||||
[[ $script == "script-functions" ]] && install -m 644 "$script" /usr/local/bin/
|
||||
cp -u "$script" /usr/local/bin/
|
||||
done
|
||||
|
||||
@@ -41,5 +43,4 @@ for homedir in /home/*; do
|
||||
Icon=text-html
|
||||
EOF
|
||||
done
|
||||
unset desktop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user