Skip to content

Commit 0f176c9

Browse files
authored
Fix run.sh (#27)
1 parent 4ab47b9 commit 0f176c9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/run.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
FILES_SEQ="build/bin/*_seq"
44
for file in $FILES_SEQ; do
5+
if [ "$file" = "build/bin/*_seq" ]; then continue; fi
56
echo "--------------------------------"
67
echo $(basename $file)
78
echo "--------------------------------"
@@ -10,6 +11,7 @@ done
1011

1112
FILES_OMP="build/bin/*_omp"
1213
for file in $FILES_OMP; do
14+
if [ "$file" = "build/bin/*_omp" ]; then continue; fi
1315
echo "--------------------------------"
1416
echo $(basename $file)
1517
echo "--------------------------------"
@@ -18,6 +20,7 @@ done
1820

1921
FILES_TBB="build/bin/*_tbb"
2022
for file in $FILES_TBB; do
23+
if [ "$file" = "build/bin/*_tbb" ]; then continue; fi
2124
echo "--------------------------------"
2225
echo $(basename $file)
2326
echo "--------------------------------"
@@ -26,6 +29,7 @@ done
2629

2730
FILES_STD="build/bin/*_std"
2831
for file in $FILES_STD; do
32+
if [ "$file" = "build/bin/*_std" ]; then continue; fi
2933
echo "--------------------------------"
3034
echo $(basename $file)
3135
echo "--------------------------------"
@@ -34,12 +38,13 @@ done
3438

3539
FILES_MPI="build/bin/*_mpi"
3640
for file in $FILES_MPI; do
41+
if [ "$file" = "build/bin/*_mpi" ]; then continue; fi
3742
echo "--------------------------------"
3843
echo $(basename $file)
3944
echo "--------------------------------"
40-
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
45+
if [[ $OSTYPE == "linux-gnu" ]]; then
4146
NUM_PROC=$(cat /proc/cpuinfo|grep processor|wc -l)
42-
elif [[ $TRAVIS_OS_NAME == 'osx' ]]; then
47+
elif [[ $OSTYPE == "darwin"* ]]; then
4348
NUM_PROC=$(sysctl -a | grep machdep.cpu | grep thread_count | cut -d ' ' -f 2)
4449
else
4550
echo "Unknown OS"

0 commit comments

Comments
 (0)