site-autoconfig/env.sh

14 lines
228 B
Bash
Raw Normal View History

2020-10-18 06:40:51 +00:00
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "This scripts takes exactly one argument" 1>&2
exit 1;
fi;
if [ -z "$1" ]; then
echo "The argument should not be empty" 1>&2
exit 1;
fi;
export FN="$(echo "$1" | sed "s/\\./-/g")"