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

@@ -12,7 +12,7 @@ With the scripts, you can:
1. Install required dependencies using `./scripts/install_deps.sh` 1. Install required dependencies using `./scripts/install_deps.sh`
2. Build and install ffmpeg from source using `./scripts/build.sh` 2. Build and install ffmpeg from source using `./scripts/build.sh`
3. Install an encoding script using `./scripts/recc_encode_install.sh -I` 3. Install an encoding script using `./scripts/recc_encode.sh -I`
4. Install a film-grain estimation script using `./scripts/estimate_fg.sh -I` 4. Install a film-grain estimation script using `./scripts/estimate_fg.sh -I`
5. Benchmark the different encoders using `./scripts/benchmark.sh` 5. Benchmark the different encoders using `./scripts/benchmark.sh`

View File

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

View File

@@ -1,5 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Enable extended pattern matching for ?() and +() operators
shopt -s extglob
# this is simply my recommended encoding method. # this is simply my recommended encoding method.
# do not take this as a holy grail. # do not take this as a holy grail.