test.sh: move shell parameters to the top of file
This commit is contained in:
parent
f9cbf96a96
commit
42fa63ea90
1 changed files with 2 additions and 2 deletions
4
test.sh
4
test.sh
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set +o histexpand # Disable parsing "!" as the history expansion character
|
||||||
|
|
||||||
mkdir_if_not_exists() {
|
mkdir_if_not_exists() {
|
||||||
[ -d "$1" ] || mkdir "$1"
|
[ -d "$1" ] || mkdir "$1"
|
||||||
}
|
}
|
||||||
|
@ -37,8 +39,6 @@ iterate_on_test_files() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
set +o histexpand # Disable parsing "!" as the history expansion character
|
|
||||||
|
|
||||||
cd ./test_files || exit 1
|
cd ./test_files || exit 1
|
||||||
printf "[*] Generating corrupted versions of test files\n"
|
printf "[*] Generating corrupted versions of test files\n"
|
||||||
mkdir_if_not_exists ./corrupted/
|
mkdir_if_not_exists ./corrupted/
|
||||||
|
|
Loading…
Reference in a new issue