Commit 5e610a1f authored by Juergen Weigert's avatar Juergen Weigert

secure wrapper script against relative paths.

parent 2f43ea9d
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
# as a standaloine tool # as a standaloine tool
image=$1 image=$1
test -z "$image" && image=./testdata/kringel.png test -z "$image" && image=testdata/kringel.png
case "$image" in .*) ;; /*) ;; *) image=./$image;; esac
tmpsvg=/tmp/$$-centerline-trace-wrapper.svg tmpsvg=/tmp/$$-centerline-trace-wrapper.svg
cat << EOF > $tmpsvg cat << EOF > $tmpsvg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment