Skip to content

Commit

Permalink
Add back variable support
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsteinbaugh committed Sep 18, 2019
1 parent fb5d3d7 commit 060424b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions bin/koopa
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env bash

# koopa shell bootloader.
# (c) 2018 Michael Steinbaugh.
# This software is provided under an MIT License.

if [[ -z "${KOOPA_HOME:-}" ]]
then
>&2 printf "koopa is not correctly activated.\n"
Expand All @@ -10,10 +14,6 @@ fi
# shellcheck source=/dev/null
source "${KOOPA_HOME}/shell/bash/include/header.sh"

# koopa shell bootloader.
# (c) 2018 Michael Steinbaugh.
# This software is provided under an MIT License.

version="$(_koopa_variable koopa)"
date="$(_koopa_variable koopa_date)"

Expand Down Expand Up @@ -42,6 +42,9 @@ return string commands:
home
Return the koopa installation path.
Also stored as 'KOOPA_HOME' environment variable.
variable
Internal koopa configuration variable.
For use in Python and R scripts only.
optional arguments:
-h, --help
Expand Down Expand Up @@ -113,6 +116,10 @@ case "$1" in
>&2 printf "Error: Use 'update' instead of 'upgrade'.\n"
exit 1
;;
variable)
_koopa_variable "$2"
exit
;;
*)
>&2 printf "Error: Unsupported command.\n"
exit 1
Expand Down

0 comments on commit 060424b

Please sign in to comment.