From: Paul Hänsch Date: Wed, 25 Sep 2019 13:54:23 +0000 (+0200) Subject: prevent broken output when uuencoding images X-Git-Url: http://git.plutz.net/?p=clickslide;a=commitdiff_plain;h=eb622bffd26adb3d2770c0c37e17c652699ffc20 prevent broken output when uuencoding images --- 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