fi
local ex=0
- if [ -n "$(docker images -q $docker_name 2>/dev/null)" ]; then
+ if [ -n "$(docker images -q $docker_name:latest 2>/dev/null)" ]; then
echo "$FUNCNAME: $docker_name already build."
ex=2
# Parser on/off (default: on)
if (!isset($opt['parser'])) $opt['parser'] = true;
- $parse = $opt['parser'];
- #bye($parse);
+ $parser = $opt['parser'];
+ #bye($parser);
while ($row = $st->fetch(PDO::FETCH_ASSOC, PDO::FETCH_ORI_NEXT)) {
$count++;
$call = null;
- $this->db()->table_row_decrypt($this,$row);
- if ($parse and !empty($this->db()->row_parse)) {
+ if ($parser) $this->db()->table_row_decrypt($this,$row);
+ if ($parser and !empty($this->db()->row_parse)) {
$call = $this->db()->row_parse; $call($row);
}
- if ($parse and !empty($this->row_parse_pre)) {
+ if ($parser and !empty($this->row_parse_pre)) {
$call = $this->row_parse_pre; $call($row);
}
}
- if ($parse and !empty($this->row_parse_post)) {
+ if ($parser and !empty($this->row_parse_post)) {
$call = $this->row_parse_post; $call($row);
}