Use bash and fix the here document.
authorStephen Haberman <stephen@exigencecorp.com>
Fri, 2 Apr 2010 21:41:07 +0000 (16:41 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Fri, 2 Apr 2010 21:41:07 +0000 (16:41 -0500)
scripts/create-stable

index 3ee7503..3997b64 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Creates a separate DAG in the repo to merge stable into.
 #
@@ -7,12 +7,14 @@
 
 # Make a root directory tree with no files in it
 config_tree_hash=$(git mktree <<FOO
-FOO)
+FOO
+)
 
 # Commit the root directory tree
 commit_hash=$(git commit-tree $config_tree_hash <<FOO
 Initial commit on stable branch.
-FOO)
+FOO
+)
 
 echo "Made stable 0.0 commit $commit_hash"