iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bash-bear rename and a few improvements
[distro-setup]
/
prof-backup
diff --git
a/prof-backup
b/prof-backup
index cf9199bb031d716af23bc5d0bab85f94150e8698..e49cb494a0b121602342e3dec3ce9125c564a8bf 100755
(executable)
--- a/
prof-backup
+++ b/
prof-backup
@@
-20,6
+20,9
@@
if [ -z "$BASH_VERSION" ]; then echo "error: shell is not bash" >&2; exit 1; fi
source /a/bin/bash-bear-trap/bash-bear
source /a/bin/bash_unpublished/source-state
+if [[ ! $HOSTNAME ]]; then
+ HOSTNAME=$(cat /etc/hostname)
+fi
if [[ $HOSTNAME != "$HOST2" ]]; then
exit 0
fi