From 5e6a2aac7f60f3cd604492335e3b354cf8ed2a23 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Sat, 25 Mar 2023 21:20:41 +0800 Subject: [PATCH] Fix: wrong way to compare string, revert bcdd0ec4811d5cc22d75888a7098908412e55aac --- makedeb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makedeb b/makedeb index 97e3ad1..e3a73ac 100755 --- a/makedeb +++ b/makedeb @@ -94,9 +94,9 @@ function url_type { echo "http" elif [[ "${url}" == https://* ]] ; then echo "https" - elif [[ "${url}" == "file//*" ]]; then + elif [[ "${url}" == file//* ]]; then echo "file" - elif [[ "${url}" != "*://*" ]] ; then + elif [[ "${url}" != *://* ]] ; then echo "file" else err "Unkown url schema: %s" "${url}" @@ -138,7 +138,7 @@ function extract_source_single { git --git-dir "${workspace}/${file_name}" --work-tree="${srcdir}" restore --source="${restore_source}" . ;; *) - ln --symbolic $(realpath "${workspace}/${url}") "${srcdir}/${file_name}" + ln --symbolic $(realpath "${workspace}/${file_name}") "${srcdir}/${file_name}" decompress_source_file "${file_name}" ;; esac