On Sun, 12 Jan 2020 00:49:09 +0100 Denis 'GNUtoo' Carikli <[email protected]> wrote:
> In release_metadata_git, after doing a cd to $REPLICANT_DIR, it tries > to write to "$METADATA/git-tags.txt" and it fails like this: > $ ./release.sh replicant-6.0 images > ./release.sh: line 184: images/metadata/git-tags.txt: No such file > or directory ./release.sh: line 184: images/metadata/git-tags.txt: No > such file or directory [...] > > This is because $METADATA is relative to "$RELEASE_DIR": > METADATA="$RELEASE_DIR/metadata" > And RELEASE_DIR is defined from user input: > RELEASE_DIR=$2 > > So if users use a relative path, then the "$METADATA/git-tags.txt" > will be relative to $REPLICANT_DIR. > > To fix that, the input paths were converted to absolute paths. > > Signed-off-by: Denis 'GNUtoo' Carikli <[email protected]> > --- > release.sh | 30 ++++++++++++++++++------------ > 1 file changed, 18 insertions(+), 12 deletions(-) I've pushed the patch. Denis.
pgpfynrvrrVXn.pgp
Description: OpenPGP digital signature
_______________________________________________ Replicant mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/replicant
