-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathagent.plist
More file actions
35 lines (35 loc) · 1.26 KB
/
agent.plist
File metadata and controls
35 lines (35 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd>
<plist version="1.0">
<dict>
<key>Label</key>
<string>test</string>
<key>StandardErrorPath</key>
<string>/goinfre/local.job.err</string>
<key>StandardOutPath</key>
<string>/goinfre/local.job.out</string>
<key>ProgramArguments</key>
<array>
<string>bash</string>
<string>-l</string>
<string>-c</string>
<string>if [ "`git -C ~/.murmurbox/ remote get-url origin 2>&1`" != "https://github.com/murmurlab/scripts.git" ]; then
(
rm -rf ~/.murmurbox #>& /dev/null;
git clone https://github.com/murmurlab/scripts.git ~/.murmurbox #>& /dev/null;
# bash ~/.murmurbox/murmurbox.bash u
);
else
(
git -C ~/.murmurbox/ fetch #>& /dev/null;
git -C ~/.murmurbox/ reset --hard origin/master #>& /dev/null;
git -C ~/.murmurbox/ switch master #>& /dev/null;
# bash ~/.murmurbox/murmurbox.bash u;
);
fi</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>