iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a5733de
)
working version
author
Ian Kelling
<ian@iankelling.org>
Mon, 7 Nov 2016 15:51:29 +0000
(07:51 -0800)
committer
Ian Kelling
<ian@iankelling.org>
Mon, 7 Nov 2016 15:51:29 +0000
(07:51 -0800)
myunison
patch
|
blob
|
history
diff --git
a/myunison
b/myunison
index 8e3c8b3eceac9352c5867affd32a69810cd8e1b5..d8f23bcf64464ac6336c4f5a530147e33cf534fd 100755
(executable)
--- a/
myunison
+++ b/
myunison
@@
-2,7
+2,6
@@
set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
-set -x
gen_args=()
do_snapshot=true
gen_args=()
do_snapshot=true
@@
-26,6
+25,10
@@
if [[ ! $host ]]; then
host=$1
fi
host=$1
fi
+if [[ $host == demohost ]]; then
+ do_snapshot=false
+fi
+
# arch and debian don't play nice with unison.
# "connection lost" on unison-gtk, with bignum errs in term,
# and simply freezing on cli, all means compiled under
# arch and debian don't play nice with unison.
# "connection lost" on unison-gtk, with bignum errs in term,
# and simply freezing on cli, all means compiled under
@@
-75,7
+78,7
@@
else
type -t $f &>/dev/null || f=unison-gtk2 # for arch
fi
type -t $f &>/dev/null || f=unison-gtk2 # for arch
fi
-if s $f "$host"; then
+if s $f
"$host"; then
if [[ $host == frodo ]]; then
# only send data to the machine i do full backups to
p=/q/p/c/machine_specific/$HOSTNAME/.unison/
if [[ $host == frodo ]]; then
# only send data to the machine i do full backups to
p=/q/p/c/machine_specific/$HOSTNAME/.unison/