diff options
author | Mattias Andrée <maandree@kth.se> | 2024-06-16 23:13:58 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-06-16 23:13:58 +0200 |
commit | ec3cf242018a2311c66ad1202e6e3a5113c3f0f1 (patch) | |
tree | 774f1ddbe838d398e6cb60b5eaeb3090d5d2aa77 /ffmpeg | |
parent | Fix printf usage (diff) | |
download | dotfiles-ec3cf242018a2311c66ad1202e6e3a5113c3f0f1.tar.gz dotfiles-ec3cf242018a2311c66ad1202e6e3a5113c3f0f1.tar.bz2 dotfiles-ec3cf242018a2311c66ad1202e6e3a5113c3f0f1.tar.xz |
do not use -- with stty; although stty(1posix) says -- shall behave as normal, it does not in the GNU implementation, and stty(1posix) specifically states that it is not necessary when restoring to a save configuration
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-x | ffmpeg/resize-and-transcode | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg/resize-and-transcode b/ffmpeg/resize-and-transcode index 2b7b962..cecad85 100755 --- a/ffmpeg/resize-and-transcode +++ b/ffmpeg/resize-and-transcode @@ -102,7 +102,7 @@ fi ttysetting="$(stty -g)" ffmpeg -i "$input" $scale $codec -c:a copy -- "$output" ret=$? -stty -- "$ttysetting" +stty "$ttysetting" if test $ret = 0; then oldsize=$(stat -c '%s' -- "$input") |