Skip to content

Commit 3928076

Browse files
committed
Fix script to work with dash shell by using sh standard = instead of ==
Funded-by: IDEAS Project: xSDK Time: 0 hours Reported-by: David J. Moulton <[email protected]> Thanks-to: Satish Balay <[email protected]>
1 parent 1fd59b8 commit 3928076

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

installxSDK.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ for i in "$@"
1515
;;
1616
--prefix=*)
1717
PREFIX="${i#*=}"
18-
if [ "${PREFIX}" == "/usr" ]; then
18+
if [ "${PREFIX}" = "/usr" ]; then
1919
echo "Do not use /usr as your --prefix install location"
2020
exit
2121
fi
22-
if [ "${PREFIX}" == "/usr/local" ]; then
22+
if [ "${PREFIX}" = "/usr/local" ]; then
2323
echo "Do not use /usr/local as your --prefix install location"
2424
exit
2525
fi
@@ -42,7 +42,7 @@ for i in "$@"
4242
esac
4343
done
4444

45-
if [ "${PREFIX}" == "notset" ]; then
45+
if [ "${PREFIX}" = "notset" ]; then
4646
echo "You must provide a --prefix=\"installation directory\" option"
4747
exit
4848
fi
@@ -96,8 +96,8 @@ fi
9696
# Install the packages
9797
export PETSC_DIR=`pwd`
9898
./configure --download-xsdk $*
99-
if [ "$?" == "0" ]; then
100-
if [ "${SKIPMAKE}" == "0" ]; then
99+
if [ "$?" = "0" ]; then
100+
if [ "${SKIPMAKE}" = "0" ]; then
101101
make
102102
make install
103103
fi

0 commit comments

Comments
 (0)