#! /bin/sh # co_bin (Bourne shell script) -- Updates ~/bin with the Git version if [ -d bin.old ] ; then echo co_bin: bin.old already exists >&2 exit 2 fi mv bin bin.old # create a bin directory and pre-fill it git clone https://github.com/unixnut/scripts bin svn export --force http://al.id.au/svn/tools/userconfig/standard_scripts bin for f in bin.old/* ; do if [ ! -f "bin/${f##*/}" ] ; then mv -v "$f" bin/ fi done