diff options
author | epoch <epoch@hacking.allowed.org> | 2020-04-02 02:38:27 -0500 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2020-04-02 02:38:27 -0500 |
commit | 71886960c496c867cef03e0c1e154f8fb9d58275 (patch) | |
tree | 1bda1108e1688477137d6a4b061b8eaddb173295 /bin | |
parent | 178ca5c659244b19c390b0700a4218215dc6fb3d (diff) | |
download | hackvr-71886960c496c867cef03e0c1e154f8fb9d58275.tar.gz hackvr-71886960c496c867cef03e0c1e154f8fb9d58275.zip |
escaped a couple problematic characters for sed with sed
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/makelabel.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/makelabel.sh b/bin/makelabel.sh index 1f8a68a..90f908a 100755 --- a/bin/makelabel.sh +++ b/bin/makelabel.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash USAGE="usage: makelabel.sh labelname x y z < labelcontent" -target="$1" +target="$(printf "%s\n" "$1" | sed 's|\([/\&]\)|\\\1|g')" xoffset=$2 yoffset=$3 zoffset=$4 |