1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-11-08 13:42:31 +05:30

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
set +o histexpand # Disable parsing "!" as the history expansion character
mkdir_if_not_exists() {
[ -d "$1" ] || mkdir "$1"
}
@ -37,8 +39,6 @@ iterate_on_test_files() {
done
}
set +o histexpand # Disable parsing "!" as the history expansion character
cd ./test_files || exit 1
printf "[*] Generating corrupted versions of test files\n"
mkdir_if_not_exists ./corrupted/