diff options
author | John Ankarström <john@ankarstrom.se> | 2021-06-09 22:54:24 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-06-09 22:54:24 +0200 |
commit | b570a6619609cb178f144e330b3360184fe4c156 (patch) | |
tree | 040a78704fb86ce4c561a5b730e627bb1f92dfa4 /conv | |
parent | e67c4cfb5fac5b75fcde34d379cad09bf28813aa (diff) | |
download | patches-b570a6619609cb178f144e330b3360184fe4c156.tar.gz |
conv: Ensure correct patch name
Diffstat (limited to 'conv')
-rwxr-xr-x | conv | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -61,6 +61,11 @@ if [ x"$1" = x"-i" ]; then read name </dev/tty fi + case $name in + patch-*) ;; + *) name=patch-$name ;; + esac + # write patch if it doesn't already exist if [ -e $dir/$name ]; then f=`mktemp` @@ -68,7 +73,7 @@ if [ x"$1" = x"-i" ]; then exit 1 else printf '%s\n' "$patch" > $dir/$name - echo $dir/name 1>&2 + echo $dir/$name 1>&2 fi else cat |