prefix output with ./ in example
This commit is contained in:
parent
b835c8c937
commit
825a648670
1 changed files with 5 additions and 2 deletions
|
@ -100,8 +100,11 @@ An example `git-annex-compute-foo` shell script follows:
|
||||||
echo "INPUT $2"
|
echo "INPUT $2"
|
||||||
read input
|
read input
|
||||||
echo "OUTPUT $3"
|
echo "OUTPUT $3"
|
||||||
|
# Prefixing with ./ makes sure that the output is treated as a
|
||||||
|
# filename, rather than a dashed option.
|
||||||
|
output="./$3"
|
||||||
echo REPRODUCIBLE
|
echo REPRODUCIBLE
|
||||||
if [ -n "$input" ]; then
|
if [ -n "$input" ]; then
|
||||||
mkdir -p "$(dirname "$3")"
|
mkdir -p "$(dirname "$output")"
|
||||||
frobnicate --passes="$ANNEX_COMPUTE_passes" <"$input" >"$3"
|
frobnicate --passes="$ANNEX_COMPUTE_passes" <"$input" >"$output"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue