diff options
-rwxr-xr-x | dicewords | 2 | ||||
-rwxr-xr-x | qr | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -36,5 +36,5 @@ if ! [ -e "$dictionary" ]; then exit 1 fi -egrep '^[a-z]{1,6}$' "$dictionary" | shuf | head -n "$count" | tr '\n' '-' | sed -e 's/-$//' +egrep '^[a-z]{1,6}$' "$dictionary" | shuf | head -n "$count" | tr '\n' '.' | sed -e 's/\.$//' echo @@ -67,7 +67,7 @@ done shift $(($OPTIND - 1)) -img="$(tempfile --suffix .png)" +img="$(mktemp --suffix .png)" trap "rm -f '$img'" EXIT @@ -86,7 +86,7 @@ elif [ "$have_msg" -eq 0 ]; then fi if [ "$#" -eq 0 ]; then - stdin="$(tempfile)" + stdin="$(mktemp)" trap "rm -f '$img' '$stdin'" EXIT cat > "$stdin" set -- "$stdin" |