From adfedf4b6452a33841e23469668fe1ad357d9da4 Mon Sep 17 00:00:00 2001 From: Ross Smith II Date: Sat, 3 Mar 2018 20:02:45 -0800 Subject: [PATCH 1/3] Add Mingw/Msys support --- yadm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yadm b/yadm index e55a287..3ee88f5 100755 --- a/yadm +++ b/yadm @@ -809,11 +809,12 @@ function set_operating_system() { fi case "$OPERATING_SYSTEM" in - CYGWIN*) + CYGWIN*|MINGW*|MSYS*) git_version=$(git --version 2>/dev/null) if [[ "$git_version" =~ windows ]] ; then USE_CYGPATH=1 fi + OPERATING_SYSTEM=$(uname -o) ;; *) ;; From 315ad0873e843b1cfa7f2a9933e15dde798cba24 Mon Sep 17 00:00:00 2001 From: Ross Smith II Date: Sun, 4 Mar 2018 06:34:08 -0800 Subject: [PATCH 2/3] Fix OS check to match (Cygwin|Msys)* --- yadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yadm b/yadm index 3ee88f5..6f6f8b9 100755 --- a/yadm +++ b/yadm @@ -169,7 +169,7 @@ function alt() { #; decide if a copy should be done instead of a symbolic link local do_copy=0 - if [[ $OPERATING_SYSTEM == CYGWIN* ]] ; then + if [[ $OPERATING_SYSTEM =~ (Cygwin|Msys) ]] ; then if [[ $(config --bool yadm.cygwin-copy) == "true" ]] ; then do_copy=1 fi From 54f7cbcebe835b098a23998a16eb11f4d643eeb1 Mon Sep 17 00:00:00 2001 From: Ross Smith II Date: Mon, 5 Mar 2018 07:02:46 -0800 Subject: [PATCH 3/3] Fix OS name match for Cygwin/Msys --- yadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yadm b/yadm index 6f6f8b9..c391306 100755 --- a/yadm +++ b/yadm @@ -169,7 +169,7 @@ function alt() { #; decide if a copy should be done instead of a symbolic link local do_copy=0 - if [[ $OPERATING_SYSTEM =~ (Cygwin|Msys) ]] ; then + if [[ $OPERATING_SYSTEM =~ ^(CYGWIN|MSYS) ]] ; then if [[ $(config --bool yadm.cygwin-copy) == "true" ]] ; then do_copy=1 fi