/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to tools/dev-reset

  • Committer: Tim Marston
  • Date: 2016-04-10 17:42:36 UTC
  • Revision ID: tim@ed.am-20160410174236-708ckdxils6m2ndv
added tools

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        fi
26
26
fi
27
27
 
28
 
# check/create reset dir
29
 
if [ ! -d ~/.stdhome.dev.reset/home -a ! -d ~/.stdhome/home ]; then
30
 
        echo "No ~/.stdhome.dev/home and nothing to copy it from"
31
 
        exit 1
32
 
fi
33
 
if [ ! -d ~/.stdhome.dev.reset/home ]; then
34
 
        echo copying dev environment to initial snapshot
35
 
        rm -rf ~/.stdhome.dev.reset
36
 
        cp -a ~/.stdhome ~/.stdhome.dev.reset
37
 
fi
38
 
 
39
28
# update repo
40
29
echo updating repo snapshot
41
30
cd ~/.stdhome.dev.reset/home