#!/bin/bash

fl=$(yad --file)

if  [ -n "$fl" ]; then
  if [[ "$fl" == *"zim"* ]]; then
    kiwix-serve -p 8080 -i 127.0.0.1 "$fl"
  fi
fi