Fix filename

This commit is contained in:
Akiyamov
2024-11-30 20:22:46 +05:00
committed by GitHub
parent 72ceb1046d
commit 3b2c6de384

View File

@@ -647,7 +647,7 @@ list_custom_domains_create() {
list_custom_local_domains_create() {
local local_file="$1"
local name="$2"
local filename=$(echo "${local_file%.*}")
local filename=$(basename "$local_file" | cut -d. -f1)
local config="/tmp/dnsmasq.d/${name}-${filename}.lst"
rm -f $config