Commit c647b1ce authored by Tk-Glitch's avatar Tk-Glitch

wine/proton-tkg: nomakepkg: If nomakepkg scripts are called followed by a path...

wine/proton-tkg: nomakepkg: If nomakepkg scripts are called followed by a path (example: `./proton-tkg.sh "/run/media/mywineconfigs/thing.cfg"`), make it the default value for _EXT_CONFIG_PATH in `wine|proton-tkg-profiles/advanced-customization.cfg`.
parent a33146b6
......@@ -279,6 +279,11 @@ elif [ "$1" == "build_lsteamclient" ]; then
elif [ "$1" == "build_steamhelper" ]; then
build_steamhelper
else
# If $1 contains a path, and it exists, use it as default for config
if [ -e "$1" ]; then
sed -i -e "s|_EXT_CONFIG_PATH.*|_EXT_CONFIG_PATH=$1|" "$_nowhere"/proton-tkg-profiles/advanced-customization.cfg
fi
rm -rf "$_nowhere"/proton_dist_tmp
cd "$_nowhere"
......
......@@ -244,6 +244,10 @@ elif [ "$1" == "--deps32" ]; then
./configure
msg2 "You might find help regarding dependencies here: https://github.com/Tk-Glitch/PKGBUILDS/wiki/wine-tkg-git#dependencies"
else
# If $1 contains a path, and it exists, use it as default for config
if [ -e "$1" ]; then
sed -i -e "s|_EXT_CONFIG_PATH.*|_EXT_CONFIG_PATH=$1|" "$_where"/wine-tkg-profiles/advanced-customization.cfg
fi
build_wine_tkg
fi
......
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