summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2024-05-21 09:33:33 +0800
committerliuxueli <[email protected]>2024-05-21 09:33:33 +0800
commitfaed23fbe0433d655af4cf4d0b6ea88fcf3932dd (patch)
treee5332de0d9be28755a78e1cc5e18ce9de6c38aea
parent513d4f178ff3aeb28684a4c2d584e34145e8ab7a (diff)
Bugfix: Update PreInstall.sh, defer_load.inf installs twicev1.0.21
-rw-r--r--cmake/PreInstall.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/PreInstall.in b/cmake/PreInstall.in
index ea89e39..0d04d3b 100644
--- a/cmake/PreInstall.in
+++ b/cmake/PreInstall.in
@@ -5,16 +5,16 @@ mkdir -p ${DST}/stellar_plugin/
touch ${DST}/stellar_plugin/spec.toml
touch ${DST}/plug/conflist.inf
-if ! grep -q '^\./plug/stellar_on_sapp/start_loader.inf$' "${DST}/plug/conflist.inf"; then
- if grep -q '^\[platform\]$' "${DST}/plug/conflist.inf"; then
+if [[ ! grep '^\./plug/stellar_on_sapp/start_loader.inf$' "${DST}/plug/conflist.inf" ]]; then
+ if [[ grep '^\[platform\]$' "${DST}/plug/conflist.inf" ]]; then
sed -i '/^\[platform\]$/a\./plug/stellar_on_sapp/start_loader.inf' "${DST}/plug/conflist.inf"
else
echo -e "[platform]\n./plug/stellar_on_sapp/start_loader.inf" >> "${DST}/plug/conflist.inf"
fi
fi
-if ! grep -q '^\./plug/stellar_on_sapp/defer_loader.inf$' "${DST}/plug/conflist.inf"; then
- if grep -q '^\[business\]$' "${DST}/plug/conflist.inf"; then
+if [[ ! grep '^\./plug/stellar_on_sapp/defer_loader.inf$' "${DST}/plug/conflist.inf" ]]; then
+ if [[ grep '^\[business\]$' "${DST}/plug/conflist.inf" ]]; then
sed -i '/^\[business\]$/a\./plug/stellar_on_sapp/defer_loader.inf' "${DST}/plug/conflist.inf"
else
echo -e "[business]\n./plug/stellar_on_sapp/defer_loader.inf" >> "${DST}/plug/conflist.inf"