]> git.plutz.net Git - vhs_kurs/commitdiff
Squashed 'clickslide/' changes from 08ca3fa..eb622bf
authorPaul Hänsch <paul@plutz.net>
Wed, 25 Sep 2019 13:56:04 +0000 (15:56 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 25 Sep 2019 13:56:04 +0000 (15:56 +0200)
eb622bf prevent broken output when uuencoding images

git-subtree-dir: clickslide
git-subtree-split: eb622bffd26adb3d2770c0c37e17c652699ffc20

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