@ -285,7 +285,10 @@ then
KVER=$(basename "$(readlink $KERNEL_DIR)" | sed 's/linux-//')
fi
[[ -n $SAFEMODE ]] && [[ $KVER =~ -calculate ]] || eerror "--safemode available for calculate-sources only"
if [[ -n $SAFEMODE ]] && ! [[ $KVER =~ -calculate ]]
then
eerror "--safemode available for calculate-sources only"
if ! [[ -d $LOCAL_TEMPLATES_DIR ]]