Add tar as a dependency
This commit is contained in:
parent
a31cd280e3
commit
7284efa542
1 changed files with 15 additions and 0 deletions
15
msman.sh
15
msman.sh
|
@ -48,6 +48,21 @@ function check_dependencies {
|
|||
echo "Error: screen is not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if tar is installed
|
||||
if ! command -v tar &> /dev/null
|
||||
then
|
||||
echo "Error: tar is not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if gzip is installed
|
||||
# TODO: Check if this is needed and/or works
|
||||
# if ! command -v gzip &> /dev/null
|
||||
# then
|
||||
# echo "Error: gzip is not installed"
|
||||
# exit 1
|
||||
# fi
|
||||
}
|
||||
|
||||
# Ask if the user wants to continue anyway
|
||||
|
|
Loading…
Reference in a new issue