From: Paul Hänsch Date: Wed, 25 Sep 2019 13:56:04 +0000 (+0200) Subject: Squashed 'clickslide/' changes from 08ca3fa..eb622bf X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=14c693f2eabbe45c39aab56b0440ae778c638a00;p=vhs_kurs Squashed 'clickslide/' changes from 08ca3fa..eb622bf eb622bf prevent broken output when uuencoding images git-subtree-dir: clickslide git-subtree-split: eb622bffd26adb3d2770c0c37e17c652699ffc20 --- 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