Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanshelly committed Oct 21, 2020
1 parent 3f2d83c commit baab17c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions infra/scripts/component_enabled.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#! /usr/bin/env bash

command -v jq > /dev/null || exit 1
main() {
local enabled

ENABLED="$("$DOTFILES/infra/scripts/get_local_setting.sh" "$1")"
[[ $ENABLED == true ]]
enabled="$("$DOTFILES/infra/scripts/get_local_setting.sh" "$1")"
[[ $enabled == true ]]
}

main "$@"

0 comments on commit baab17c

Please sign in to comment.