This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function list_namespace { | |
entry_point=$(echo ${1} | sed 's/\/$//') | |
echo "${entry_point}" | |
## first, check if root ns, and if so collect children slightly differently due to path specification | |
# | |
if [[ "${entry_point}" == "root" ]] | |
then |