Skip to content

Commit

Permalink
Use bash, not sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed May 25, 2024
1 parent 3f1fce5 commit 1a9d61a
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ if(BUILD_USR_DIR)
endif(BUILD_USR_DIR)

cp_script(test.sh)
add_test(testscript "sh" "test.sh")
add_test(testscript "bash" "test.sh")

#add_subdirectory(tsa)
2 changes: 1 addition & 1 deletion src/algo/L
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
#!/bin/bash
# give no ids for output since relax only handles one single avalanche
algo/fix l $2 | io/avalanches_bin2human $1
2 changes: 1 addition & 1 deletion src/algo/S
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
#!/bin/bash
algo/fix s $1
2 changes: 1 addition & 1 deletion src/algo/is_recurrent
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

#RETURN_VALUE=./algo/burning_test>/dev/null
./algo/burning_test>/dev/null
Expand Down
2 changes: 1 addition & 1 deletion src/algo/l
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
#!/bin/bash
# give no ids for output since relax only handles one single avalanche
algo/relax l $2 $3 | io/avalanches_bin2human $1
2 changes: 1 addition & 1 deletion src/algo/s
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
#!/bin/bash
algo/relax s $1 $2
2 changes: 1 addition & 1 deletion src/algo/throw
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
#!/bin/bash
math/add $1 | algo/relax s $1 $2
2 changes: 1 addition & 1 deletion src/ca/ca_file
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
FILENAME=$1
shift
./ca/ca "`cat $FILENAME`" $*
2 changes: 1 addition & 1 deletion src/core/diff2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
#!/bin/bash
math/comb sub "$*" | core/all_equals 0
2 changes: 1 addition & 1 deletion src/io/to_image
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
usage ()
{
echo "Converts a grid into an image known by ImageMagick"
Expand Down
2 changes: 1 addition & 1 deletion src/io/to_ods
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
usage ()
{
echo "Converts a grid into an ODS table file for OpenOffice"
Expand Down
2 changes: 1 addition & 1 deletion src/io/to_pdf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
#!/bin/bash
cat > $1.csv && oocalc --convert-to pdf $1.csv
2 changes: 1 addition & 1 deletion src/math/add2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
#!/bin/bash
math/comb add "$*"
2 changes: 1 addition & 1 deletion src/math/coords
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

usage ()
{
Expand Down
2 changes: 1 addition & 1 deletion src/math/sub2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
#!/bin/bash
math/comb sub "$*"
2 changes: 1 addition & 1 deletion src/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# Set this to 1 if you want to do non obligatory tests
if [ ! "$DO_OBLIGATORY" ]
Expand Down

0 comments on commit 1a9d61a

Please sign in to comment.