test.sh: move shell parameters to the top of file

This commit is contained in:
Intel A80486DX2-66 2024-07-07 01:52:59 +03:00
parent f9cbf96a96
commit 42fa63ea90
Signed by: 80486DX2-66
GPG key ID: 83631EF27054609B

View file

@ -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/