Add tar as a dependency
This commit is contained in:
parent
a31cd280e3
commit
7284efa542
15
msman.sh
15
msman.sh
@ -48,6 +48,21 @@ function check_dependencies {
|
|||||||
echo "Error: screen is not installed"
|
echo "Error: screen is not installed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
# Ask if the user wants to continue anyway
|
||||||
|
Loading…
x
Reference in New Issue
Block a user