mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r7961) [Configure] -Fix: "" in config params didn't survive --reconfig. They should now.
This commit is contained in:
parent
c6da059f7b
commit
025d8dd224
@ -257,10 +257,10 @@ save_params() {
|
|||||||
|
|
||||||
configure="$0 --ignore-extra-parameters"
|
configure="$0 --ignore-extra-parameters"
|
||||||
for p in $save_params_array; do
|
for p in $save_params_array; do
|
||||||
eval "v=\$$p"
|
eval "v=\"\$$p\""
|
||||||
p=`echo "$p" | sed 's/_/-/g;s/\n//g;'`
|
p=`echo "$p" | sed 's/_/-/g;s/\n//g;'`
|
||||||
# Only save those params that aren't empty
|
# Only save those params that aren't empty
|
||||||
configure="$configure --$p=$v"
|
configure="$configure --$p=\"$v\""
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "$configure" >> $config_log
|
echo "$configure" >> $config_log
|
||||||
|
Loading…
Reference in New Issue
Block a user