Refactor
This commit is contained in:
parent
9c1f31768d
commit
cb43d7a7c1
|
@ -82,11 +82,7 @@ getGitconfigData() {
|
|||
}
|
||||
|
||||
checkForDependencies() {
|
||||
if [ "$1" = "libnewt" ]; then
|
||||
comm=whiptail
|
||||
else
|
||||
comm=$1
|
||||
fi
|
||||
comm=$1 && [ "$1" = "libnewt" ] && comm=whiptail
|
||||
|
||||
command -v "${comm}" &> /dev/null
|
||||
if [ $? -eq 1 ]; then
|
||||
|
|
Loading…
Reference in New Issue