build/linux: Fix '--no-expand' param of conf_app function on AppImage script

This commit is contained in:
Bruno Lopes 2025-04-06 19:37:33 -03:00
parent b2493f4273
commit abeac94e8e
No known key found for this signature in database

View file

@ -226,8 +226,10 @@ conf_app ()
#Get expanded var
if [ "$3" != '--no-expand' ]; then
appdir_path='${APPDIR}/usr/'
var_path="$(echo $prefix/$2 | sed "s|${prefix}/||g")"
else
unset appdir_path
var_path="$2"
fi
@ -237,7 +239,7 @@ conf_app ()
if [ ! -f "$apprun.bak" ]; then
cp $apprun "$apprun.bak"
fi
echo "export $1=\"\${APPDIR}/usr/$var_path\"" >> "$apprun"
echo "export $1=\"${appdir_path}${var_path}\"" >> "$apprun"
fi
eval export $1="${prefix}/$var_path" || $true
}