redirect command stdout to stderr
authorJoey Hess <joeyh@joeyh.name>
Fri, 7 Mar 2025 20:01:27 +0000 (16:01 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 7 Mar 2025 20:01:27 +0000 (16:01 -0400)
Otherwise it will be interpreted as compute program protocol

doc/design/compute_special_remote_interface.mdwn
doc/special_remotes/compute/git-annex-compute-imageconvert

index 93da38147b12df25d5c90cea71c7127ce30302ab..e6fad0f2b1d3b449471f16ff655653cc12ab15fe 100644 (file)
@@ -110,5 +110,5 @@ An example `git-annex-compute-foo` shell script follows:
     echo REPRODUCIBLE
 
     if [ -n "$input" ]; then
-        frobnicate --passes="$ANNEX_COMPUTE_passes" <"$input" >"$output"
+        frobnicate --passes="$ANNEX_COMPUTE_passes" -i "$input" -o "$output" >&2
     fi
index 3ecd4c0790e7a5164f7a2b0ce144888829ef928d..bdcb665ea17e36202c8cbd11bfa5e69765929da8 100755 (executable)
@@ -17,5 +17,5 @@ echo "OUTPUT $2"
 read output
 
 if [ -n "$input" ]; then
-       convert "$input" "$output"
+       convert "$input" "$output" >&2
 fi