aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-06-14 15:14:25 +0200
committerMattias Andrée <maandree@kth.se>2024-06-14 15:14:30 +0200
commit52bbc710030e0a6015e633cc589aac0228986ad8 (patch)
treeeb457b698a67b70979bf0fa05ec4298df925148f /ffmpeg
parentffmpeg/resize-and-transcode: restore tty settings (diff)
downloaddotfiles-52bbc710030e0a6015e633cc589aac0228986ad8.tar.gz
dotfiles-52bbc710030e0a6015e633cc589aac0228986ad8.tar.bz2
dotfiles-52bbc710030e0a6015e633cc589aac0228986ad8.tar.xz
Fix printf usage
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'ffmpeg')
-rwxr-xr-xffmpeg/resize-and-transcode2
-rwxr-xr-xffmpeg/resize-and-transcode-recursively2
2 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg/resize-and-transcode b/ffmpeg/resize-and-transcode
index a8d2001..2b7b962 100755
--- a/ffmpeg/resize-and-transcode
+++ b/ffmpeg/resize-and-transcode
@@ -13,7 +13,7 @@ err () {
colour="$1"
format="$2"
shift 2
- printf '\x1b['"${colour}m${format}"'\x1b[m\n' "$@" >&2
+ printf '\033['"${colour}m${format}"'\033[m\n' "$@" >&2
}
alert () { err "1;31" "$@"; }
diff --git a/ffmpeg/resize-and-transcode-recursively b/ffmpeg/resize-and-transcode-recursively
index 8a7a207..c420de3 100755
--- a/ffmpeg/resize-and-transcode-recursively
+++ b/ffmpeg/resize-and-transcode-recursively
@@ -12,7 +12,7 @@ err () {
colour="$1"
format="$2"
shift 2
- printf '\x1b['"${colour}m${format}"'\x1b[m\n' "$@" >&2
+ printf '\033['"${colour}m${format}"'\033[m\n' "$@" >&2
}
alert () { err "1;31" "$@"; }