blob: bdb5f326c49bf2f693feb5722f6455feb52dd06f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
#
# sync code or home folder across systems
#
BASENAME="`basename $0`"
DEST="$1"
if [ ! -z "$DEST" ]; then
if [ "$BASENAME" == "sync-code" ]; then
profile="$DEST-code"
else
profile="$DEST-home"
fi
if [ -f "$HOME/.unison/$profile.prf" ]; then
unison $profile
else
echo "No such profile $HOME/.unison/$profile.prf"
exit 1
fi
fi
|