Fix typos and add extended pattern matching

- Fix typo in build.sh: 'commmand' -> 'command'
- Fix incorrect script name in README: 'recc_encode_install.sh' -> 'recc_encode.sh'
- Add shopt -s extglob to enable extended pattern matching in bash scripts
This commit is contained in:
CosmicHazel
2025-06-15 01:42:02 -04:00
parent 68054520da
commit 6c17e301fb
3 changed files with 8 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
#!/usr/bin/env bash
# Enable extended pattern matching for ?() and +() operators
shopt -s extglob
usage() {
echo "./scripts/build.sh [options]"
echo -e "\th:\tdisplay this help output"
@@ -201,7 +204,7 @@ then
fi
# compilation job count
if commmand -v nproc 2> /dev/null ; then
if command -v nproc 2> /dev/null ; then
THREADS="$(nproc)"
fi