#!/bin/bash domainprefix="https://url.megumin.tech/" not_found=false if [[ ${get_data[u]} ]]; then id=${get_data[u]} if [[ -f storage/shortener/$id ]]; then meta[redirect]=$(cat storage/shortener/$id) else not_found=true fi fi meta[title]="url shortener i guess" source templates/head.sh if [[ $not_found == "true" ]]; then echo "
URL created: link
" else echo '