From fe4229dc1016ea0aaea0efe6206ce1a80dabf687 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Mon, 22 Apr 2019 16:05:57 -0400 Subject: [PATCH] compatibility with git-hydra and old macos bash --- init | 3 ++- test | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/init b/init index 8c8f280..146f1a4 100755 --- a/init +++ b/init @@ -1,9 +1,10 @@ #!/bin/bash -e mkdir -p "$1/.zit/objects" +mkdir -p "$1/.zit/refs/heads" echo 'ref: refs/heads/master' > "$1/.zit/HEAD" # for git compatibility ln -s .zit "$1/.git" -mkdir "$1/.git/info" +mkdir -p "$1/.git/info" echo .zit > "$1/.git/info/exclude" diff --git a/test b/test index e15e6e9..b132687 100755 --- a/test +++ b/test @@ -1,7 +1,7 @@ #!/bin/bash -ex header() { - echo -e "\n\e[32m$@\e[0m" + echo -e "\n\033[32m$@\033[0m" } get_md5() {