Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion openstack/novarc
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash -eu
# This script can be sourced from both Bash and Zsh shells.
# When updating please make sure not to use either Bash
# or Zsh specific features!

# NOTE(raineszm): This is written to work in both bash and
# zsh. Thanks, @wilkmar.
scriptdir="$(readlink --canonicalize $(dirname ${BASH_SOURCE:-0}))"
scriptdir="$(readlink --canonicalize $(dirname ${BASH_SOURCE[0]-$0}))"

source <("${scriptdir}/tools/construct_novarc.sh" "$@")