Last change
on this file since b12e4ad was
1241851,
checked in by tdelisle <tdelisle@…>, 6 years ago
|
Moved longrun tests outside of tests folder
|
-
Property mode set to
100755
|
File size:
444 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | if [ "$#" -ne 1 ] |
---|
4 | then |
---|
5 | echo "illegal number of parameters, must be 1 was $#" |
---|
6 | exit |
---|
7 | fi |
---|
8 | |
---|
9 | NEW="$(echo $1 | tr a-z A-Z)" |
---|
10 | TYPE_FILE=".type" |
---|
11 | if [ -f "$TYPE_FILE" ] |
---|
12 | then |
---|
13 | OLD="$(cat $TYPE_FILE | tr a-z A-Z)" |
---|
14 | if [ $OLD == $NEW ] |
---|
15 | then |
---|
16 | echo > /dev/null |
---|
17 | # echo "$TYPE_FILE stayed unchanged" |
---|
18 | else |
---|
19 | echo "$NEW" > "$TYPE_FILE" |
---|
20 | # echo "$TYPE_FILE changed from '$OLD' to '$NEW'" |
---|
21 | fi |
---|
22 | else |
---|
23 | echo "$NEW" > "$TYPE_FILE" |
---|
24 | fi |
---|
25 | echo "$TYPE_FILE" |
---|
Note: See
TracBrowser
for help on using the repository browser.