Skip to content

Commit

Permalink
Update gendocs script
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Jan 6, 2024
1 parent 86fb04f commit dc70ced
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions hack/gendocs/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.

pushd $GOPATH/src/stash.appscode.dev/stash/hack/gendocs
set -eou pipefail

SCRIPT_ROOT=$(realpath $(dirname "${BASH_SOURCE[0]}")/../..)
SCRIPT_NAME=$(basename "${BASH_SOURCE[0]}")
pushd $SCRIPT_ROOT/hack/gendocs

# http://redsymbol.net/articles/bash-exit-traps/
function cleanup() {
popd
}
trap cleanup EXIT

go run main.go
popd

0 comments on commit dc70ced

Please sign in to comment.