mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2025-11-09 08:30:08 +05:30
feat(yabs.sh): add mandatory check for TAR
This commit is contained in:
parent
4e356932ea
commit
b1d0a7d2f5
1 changed files with 13 additions and 1 deletions
14
yabs.sh
14
yabs.sh
|
|
@ -53,7 +53,7 @@ function check_command() {
|
|||
}
|
||||
|
||||
# Check for required commands and add warnings if not available
|
||||
REQUIRED_COMMANDS=("locale" "uname" "getconf" "sed" "grep" "cut" "shuf" "timeout" "date" "trap" "df" "free" "systemd-detect-virt")
|
||||
REQUIRED_COMMANDS=("locale" "uname" "getconf" "sed" "grep" "cut" "shuf" "timeout" "date" "trap" "df" "free" "systemd-detect-virt" "tar")
|
||||
|
||||
if [[ -n "$PRINT_COMMANDS_CHECK" ]]; then
|
||||
echo -e "\nChecking available commands"
|
||||
|
|
@ -99,6 +99,18 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Check for TAR, needed to open downdloaded Geekbench archive (mandatory!)
|
||||
if check_command "tar"; then
|
||||
if [[ -n "$PRINT_COMMANDS_CHECK" ]]; then
|
||||
echo -e "tar : \xE2\x9C\x94 installed"
|
||||
fi
|
||||
else
|
||||
echo -e "tar : \xE2\x9D\x8C not installed"
|
||||
echo -e "\nError: 'tar' command not found. Please install it to continue, we need it to open Geekbench.tar.gz."
|
||||
echo -e
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo -e
|
||||
if check_command "date"; then
|
||||
date
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue