#!/bin/sh
is_substring() {
case $2 in
*$1*)
return 0
;;
*)
return 1
esac
}
fail() {
echo "Something went wrong, exiting..."
exit