From eb622bffd26adb3d2770c0c37e17c652699ffc20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 25 Sep 2019 15:54:23 +0200 Subject: [PATCH] prevent broken output when uuencoding images --- clickslide.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clickslide.sh b/clickslide.sh index d42f405..b1fd229 100755 --- a/clickslide.sh +++ b/clickslide.sh @@ -5,7 +5,7 @@ depth=0 ucdepth=-1 _base64() { # busybox does not ship base64, only uuencode. Other platforms might need base64 instead - if which uuencode; then + if which uuencode >/dev/null; then uuencode -m - <"$1" \ | sed '1d; :X;$!{N;bX;}; s;\n;;g; s;=\+;;g;' else -- 2.39.2