Skip to content
Browse files

Support cp'ing sql/ from a local directory

  • Loading branch information...
1 parent 5a9c887 commit d80f778402bf062dfa1ee114a97011d9349b28a1 @mineo mineo committed
Showing with 4 additions and 5 deletions.
  1. +4 −5 update-sql.sh
View
9 update-sql.sh
@@ -1,8 +1,7 @@
#!/bin/sh
-CLONEDIR=/tmp/mbserver-clone
-git clone git://git.musicbrainz.org/musicbrainz-server.git $CLONEDIR
+CLONEDIR="${1:-/tmp/mbserver-clone}"
rm -rf sql
-mv $CLONEDIR/admin/sql .
-rm -rf $CLONEDIR
-
+[ -z "$1" ] && git clone git://git.musicbrainz.org/musicbrainz-server.git "$CLONEDIR"
+cp -r "$CLONEDIR/admin/sql" .
+[ -z "$1" ] && rm -rf $CLONEDIR

0 comments on commit d80f778

Please sign in to comment.
Something went wrong with that request. Please try again.