)]}'
{"bin/dib-run-parts":[{"author":{"_account_id":12320,"name":"Pino Toscano","email":"ptoscano@redhat.com","username":"ptoscano"},"change_message_id":"97d88169f2b13ee72b34d1c41ce7d1aee7082856","unresolved":false,"context_lines":[{"line_number":60,"context_line":"# Note: -maxdepth 1 ensures only files in the target directory (but not"},{"line_number":61,"context_line":"# subdirectories) are run, which is the way run-parts behaves."},{"line_number":62,"context_line":"targets\u003d$(find $target_dir -maxdepth 1 -xtype f -executable -printf \u0027%f\\n\u0027 | grep -E \"$allowed_regex\" | LANG\u003dC sort -n || echo \"\")"},{"line_number":63,"context_line":"unfiltered_targets\u003d$(find $target_dir -maxdepth 1 -xtype f -executable -printf \u0027%f\\n\u0027 | LANG\u003dC sort -n || echo \"\")"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"if [ \"$targets\" !\u003d \"$unfiltered_targets\" ] ; then"},{"line_number":66,"context_line":"    targets_tmp\u003d$(mktemp /tmp/dib.targets.XXXXXXXX)"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"7a016987_2a9ebb56","line":63,"updated":"2015-05-14 16:46:42.000000000","message":"Wouldn\u0027t it be better to refactor the line above and this, so `find` is invoked only once?","commit_id":"474b5eaa7225a8a27fd9ca341c6e9496cd37b2fb"},{"author":{"_account_id":12320,"name":"Pino Toscano","email":"ptoscano@redhat.com","username":"ptoscano"},"change_message_id":"97d88169f2b13ee72b34d1c41ce7d1aee7082856","unresolved":false,"context_lines":[{"line_number":63,"context_line":"unfiltered_targets\u003d$(find $target_dir -maxdepth 1 -xtype f -executable -printf \u0027%f\\n\u0027 | LANG\u003dC sort -n || echo \"\")"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"if [ \"$targets\" !\u003d \"$unfiltered_targets\" ] ; then"},{"line_number":66,"context_line":"    targets_tmp\u003d$(mktemp /tmp/dib.targets.XXXXXXXX)"},{"line_number":67,"context_line":"    sed -e \u0027s/ /\\n/g\u0027 \u003e $targets_tmp \u003c\u003c\u003c$targets"},{"line_number":68,"context_line":"    uf_targets_tmp\u003d$(mktemp /tmp/dib.uf_targets.XXXXXXXX)"},{"line_number":69,"context_line":"    sed -e \u0027s/ /\\n/g\u0027 \u003e $uf_targets_tmp \u003c\u003c\u003c$unfiltered_targets"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"7a016987_ca6cc79e","line":66,"updated":"2015-05-14 16:46:42.000000000","message":"Please do not hardcode /tmp! Just pass --tmpdir to ensure the proper temporary directory (eg $TMPDIR, if set) is used; e.g.:\n\n targets_tmp\u003d$(mktemp --tmpdir dib.targets.XXXXXX)","commit_id":"474b5eaa7225a8a27fd9ca341c6e9496cd37b2fb"},{"author":{"_account_id":12320,"name":"Pino Toscano","email":"ptoscano@redhat.com","username":"ptoscano"},"change_message_id":"97d88169f2b13ee72b34d1c41ce7d1aee7082856","unresolved":false,"context_lines":[{"line_number":65,"context_line":"if [ \"$targets\" !\u003d \"$unfiltered_targets\" ] ; then"},{"line_number":66,"context_line":"    targets_tmp\u003d$(mktemp /tmp/dib.targets.XXXXXXXX)"},{"line_number":67,"context_line":"    sed -e \u0027s/ /\\n/g\u0027 \u003e $targets_tmp \u003c\u003c\u003c$targets"},{"line_number":68,"context_line":"    uf_targets_tmp\u003d$(mktemp /tmp/dib.uf_targets.XXXXXXXX)"},{"line_number":69,"context_line":"    sed -e \u0027s/ /\\n/g\u0027 \u003e $uf_targets_tmp \u003c\u003c\u003c$unfiltered_targets"},{"line_number":70,"context_line":"    echo \"*******\""},{"line_number":71,"context_line":"    echo \"WARNING: the following executable scripts in $target_dir do not\""}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"7a016987_0afadfbd","line":68,"updated":"2015-05-14 16:46:42.000000000","message":"Ditto.","commit_id":"474b5eaa7225a8a27fd9ca341c6e9496cd37b2fb"}]}
