fix: output and dist path comparison

This commit is contained in:
ngn 2024-08-14 02:20:47 +03:00
parent c2d3b173e2
commit 64fb17091a

View File

@ -448,7 +448,7 @@ info "Cleaning the root directory"
rm -rf "${rootpath}" rm -rf "${rootpath}"
# move archive to out directory # move archive to out directory
if [ "$(realpath "${distpath}/${archive}")" != "$(realpath "${outpath}")" ]; then if [ "$(realpath "${distpath}")" != "$(realpath "${outpath}")" ]; then
mv "${distpath}/${archive}" "${outpath}" 2> /dev/null mv "${distpath}/${archive}" "${outpath}" 2> /dev/null
check_ret "Failed to move the archive to the output directory" check_ret "Failed to move the archive to the output directory"
fi fi