Skip to content
Permalink
Browse files

Enable shellcheck and fix issues (#170)

  • Loading branch information...
ferhatelmas authored and ahmetb committed Aug 25, 2019
1 parent 543e035 commit 1652420a1599093a95477b84121a1dbe13b5689a
Showing with 6 additions and 2 deletions.
  1. +3 −1 .travis.yml
  2. +3 −1 kubens
@@ -3,7 +3,9 @@ before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq bats
- sudo curl -fsSL -o /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.13.1/bin/linux/amd64/kubectl
- sudo chmod +x /usr/bin/kubectl
- sudo chmod +x /usr/bin/kubectl
script:
- bats test/kubectx.bats
- bats test/kubens.bats
- shellcheck kubectx
- shellcheck kubens
4 kubens
@@ -66,7 +66,9 @@ escape_context_name() {
}

namespace_file() {
local ctx="$(escape_context_name "${1}")"
local ctx

ctx="$(escape_context_name "${1}")"
echo "${KUBENS_DIR}/${ctx}"
}

0 comments on commit 1652420

Please sign in to comment.
You can’t perform that action at this time.