]> git.plutz.net Git - clickslide/commitdiff
prevent broken output when uuencoding images
authorPaul Hänsch <paul@plutz.net>
Wed, 25 Sep 2019 13:54:23 +0000 (15:54 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 25 Sep 2019 13:54:23 +0000 (15:54 +0200)
clickslide.sh

index d42f4059b55bc2c1975195904c81d26245bd955a..b1fd229bb1851d3f31f9854a48c2776305c7e550 100755 (executable)
@@ -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