Commit 1df21ed8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

apply prefix only if there are no other prefix

parent 25791616
......@@ -42,7 +42,10 @@ exp_with_arch_suffix()
# TODO: use estrlist or some function to do it
local str
while read -r str ; do
echo "$str" | grep "$suffix$" && continue
# do not change if some suffix already exists
echo "$str" | grep "(x86-32)$" && continue
echo "$str" | grep "\.x86_64$" && continue
echo "$str" | grep "\.i[56]86$" && continue
echo "$str$suffix"
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment