X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=myunison;h=f68ae34af1337111201affd1d8ff4279eec63ada;hb=343a048be4b32d18540c6531048d2b9a006774ae;hp=30ee1cbe3e99b24851849e7e71de8d25bfa37786;hpb=eb9b839bb5a91c60cc4f6eb9d7e38ffbf73f0e90;p=distro-setup diff --git a/myunison b/myunison index 30ee1cb..f68ae34 100755 --- a/myunison +++ b/myunison @@ -1,4 +1,4 @@ -#!/bin/bash -l +#!/bin/bash -lx set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR @@ -83,6 +83,9 @@ else type -t $f &>/dev/null || f=unison-gtk2 # for arch fi + + s ln -sTf ~/.unison /root/.unison + if s $f "$host"; then if [[ $host == frodo ]]; then # only send data to the machine i do full backups to