X-Git-Url: http://git.plutz.net/?p=vhs_kurs;a=blobdiff_plain;f=clickslide%2Fclickslide.sh;h=ad28b0b4ce6f4bf55a9f144ac688e62845cae63c;hp=b1fd229bb1851d3f31f9854a48c2776305c7e550;hb=1cdc62ad9f12af993162ffb258ae4ad92f608b45;hpb=6c6793007e44cd13ab483993687abf0d93bf738f diff --git a/clickslide/clickslide.sh b/clickslide/clickslide.sh index b1fd229..ad28b0b 100755 --- a/clickslide/clickslide.sh +++ b/clickslide/clickslide.sh @@ -16,13 +16,13 @@ _base64() { { "${0%/*}"/cgilite/html-sh.sed || cat; } \ | { - line="$(line)" + read -r line while :; do tag="${tag}${line%%>*}" if [ "$line" = "${line%%>*}" ]; then # $line did not contain ">" and thus was added to $tag entirely - if ! line="$(line)"; then + if ! read -r line; then printf %s\\n "$tag" break fi