Skip to content

Get name of repository #299

Answered by lemeurherve
klieret asked this question in Q&A
Nov 7, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The name of the repository is available via the REPOSITORY environment variable, as shown in the first example script of the README:
https://github.com/lindell/multi-gitter/blob/master/README.md?plain=1#L731-L732

#!/bin/bash
# This script should be used with the print command.
mkdir -p ~/multi-gitter/$REPOSITORY
cp -r . ~/multi-gitter/$REPOSITORY

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@klieret
Comment options

Answer selected by klieret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants