* Check for .git instead of .svn.

svn path=/nixos/trunk/; revision=34350
This commit is contained in:
Eelco Dolstra 2012-06-04 15:57:32 +00:00
parent a0cc181117
commit f2a33809c1

View file

@ -29,11 +29,11 @@ let
# Move any old nixos or nixpkgs directories out of the way.
backupTimestamp=$(date "+%Y%m%d%H%M%S")
if test -e nixos -a ! -e nixos/.svn; then
if [ -e nixos -a ! -e nixos/.git ]; then
mv nixos nixos-$backupTimestamp
fi
if test -e nixpkgs -a ! -e nixpkgs/.svn; then
if [ -e nixpkgs -a ! -e nixpkgs/.git ]; then
mv nixpkgs nixpkgs-$backupTimestamp
fi