mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
lib/utils: Code quality improvement (#103)
Fixed by suggestion https://github.com/ohmybash/oh-my-bash/issues/68#issuecomment-523238232 Bug: https://github.com/ohmybash/oh-my-bash/issues/68
This commit is contained in:
@@ -158,10 +158,7 @@ is_confirmed() {
|
||||
# fi
|
||||
#
|
||||
type_exists() {
|
||||
if [ "$(type -P "$1")" ]; then
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
[ "$(type -P "$1")" ]
|
||||
}
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user