/stdhome

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

« back to all changes in this revision

Viewing changes to dev/reset

  • Committer: Tim Marston
  • Date: 2021-09-01 12:28:59 UTC
  • Revision ID: tim@ed.am-20210901122859-tkvlmry7hef8ahwc
moved bzr -> brz

Show diffs side-by-side

added added

removed removed

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
 
28
39
# update repo
29
40
echo updating repo snapshot
30
41
cd ~/.stdhome.dev.reset/home