#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"; export KUBECONFIG="${DIR}/my_secret_stuff/kube.conf";
Example on how to get location of the script right