Improve the interactions df
This commit is contained in:
@@ -681,10 +681,10 @@ install_dependencies() {
|
||||
echo "If you do not have sudo access, you may want to use toolbox"
|
||||
case "$(uname -s)" in
|
||||
Linux*|CYGWIN*|MINGW*)
|
||||
if hash dnf &>/dev/null; then
|
||||
if command -v dnf &>/dev/null; then
|
||||
ask "Detected Linux RPM platform, continue?" || return 1
|
||||
sudo dnf install "${depends_rpm[@]}"
|
||||
elif hash apt &>/dev/null; then
|
||||
elif command -v apt &>/dev/null; then
|
||||
ask "Detected Linux DEB platform, continue?" || return 1
|
||||
sudo apt install "${depends_deb[@]}"
|
||||
else
|
||||
@@ -753,7 +753,7 @@ install_dependencies() {
|
||||
fi
|
||||
echo ""
|
||||
|
||||
hash "$MATLAB" &>/dev/null || echo "You will also need MATLAB installed for GUI modules"
|
||||
command -v "$MATLAB" &>/dev/null || echo "You will also need MATLAB installed for GUI modules"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user