Skip to content

Commit 1fbad89

Browse files
committed
Remove trailing spaces in scripts
1 parent 862d31f commit 1fbad89

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

rewatch/tests/lock.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ sleep 1
88
if rewatch clean &> /dev/null;
99
then
1010
success "Repo Cleaned"
11-
else
11+
else
1212
error "Error Cleaning Repo"
1313
exit 1
1414
fi
1515

16-
exit_watcher() {
16+
exit_watcher() {
1717
# kill watcher by removing lock file
1818
rm lib/rescript.lock
1919
}
@@ -23,11 +23,11 @@ success "Watcher Started"
2323

2424
sleep 2
2525

26-
if rewatch build | grep 'Could not start Rewatch:' &> /dev/null;
26+
if rewatch build | grep 'Could not start Rewatch:' &> /dev/null;
2727
then
2828
success "Lock is correctly set"
2929
exit_watcher
30-
else
30+
else
3131
error "Not setting lock correctly"
3232
exit_watcher
3333
exit 1
@@ -41,7 +41,7 @@ success "Watcher Started"
4141

4242
sleep 2
4343

44-
if cat tmp.txt | grep 'Could not start Rewatch:' &> /dev/null;
44+
if cat tmp.txt | grep 'Could not start Rewatch:' &> /dev/null;
4545
then
4646
error "Lock not removed correctly"
4747
exit_watcher

rewatch/tests/watch.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ bold "Test: It should watch"
66
if rewatch clean &> /dev/null;
77
then
88
success "Repo Cleaned"
9-
else
9+
else
1010
error "Error Cleaning Repo"
1111
exit 1
1212
fi
1313

14-
exit_watcher() {
14+
exit_watcher() {
1515
# kill watcher by removing lock file
1616
rm lib/rescript.lock
1717
}
@@ -23,10 +23,10 @@ echo 'Js.log("added-by-test")' >> ./packages/main/src/Main.res
2323

2424
sleep 2
2525

26-
if node ./packages/main/src/Main.mjs | grep 'added-by-test' &> /dev/null;
26+
if node ./packages/main/src/Main.mjs | grep 'added-by-test' &> /dev/null;
2727
then
2828
success "Output is correct"
29-
else
29+
else
3030
error "Output is incorrect"
3131
exit_watcher
3232
exit 1
@@ -38,10 +38,10 @@ replace '/Js.log("added-by-test")/d' ./packages/main/src/Main.res;
3838

3939
sleep 1
4040

41-
if git diff --exit-code ./
41+
if git diff --exit-code ./
4242
then
4343
success "Adding and removing changes nothing"
44-
else
44+
else
4545
error "Adding and removing changes left some artifacts"
4646
exit_watcher
4747
exit 1

0 commit comments

Comments
 (0)