eliminating error message on cygwin
authorChris Koeritz <fred@gruntose.com>
Wed, 15 Nov 2017 16:54:52 +0000 (11:54 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 15 Nov 2017 16:54:52 +0000 (11:54 -0500)
scripts/core/functions.sh

index 5346e8a2684aa8760036a5385d413c134c04aa9a..d88fe6bde290fd538fba1621d2d042177a7ea6e5 100644 (file)
@@ -478,7 +478,11 @@ if [ -z "$skip_all" ]; then
     fi
 
     # prevent permission foul-ups.
-    chown -R "$(logname):$(logname)" "$FEISTY_MEOW_LOADING_DOCK"/* "$FEISTY_MEOW_GENERATED_STORE"/*
+#hmmm: save error output here instead of muting it.
+#hmmm: better yet actually, just don't complain on freaking cygwin, since that's where this happens
+    chown -R "$(logname):$(logname)" \
+        "$FEISTY_MEOW_LOADING_DOCK"/* "$FEISTY_MEOW_GENERATED_STORE"/* 2>/dev/null
+    test_or_continue "chowning to $(logname) didn't happen."
 
     regenerate >/dev/null
     pushd "$FEISTY_MEOW_LOADING_DOCK/custom" &>/dev/null