mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2024-11-10 00:59:38 +00:00
feat(bashrc): add asdf to bash/tools config directory
This should finally elimate the painful manual exports from ~/.asdf/asdf.sh file after initing submodules post-clone. Also in this commit, I also edited the sign-tarball script to not hardcode the GPG key ID when signing. I may implement CLI flags in the future as needed. Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.xyz>
This commit is contained in:
parent
0c25c2c362
commit
8ecadd080e
2 changed files with 5 additions and 1 deletions
3
.config/bash/tools/asdf.bashrc
Normal file
3
.config/bash/tools/asdf.bashrc
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
[ -s "$HOME/.asdf/asdf.sh" ] && source "$HOME/.asdf/asdf.sh"
|
|
@ -1,8 +1,9 @@
|
|||
#!/bin/sh
|
||||
project="$(basename $(pwd))"
|
||||
version="$(git describe)"
|
||||
key="${RELEASE_SIGNING_KEY:-\"940047813E9D641C\"}"
|
||||
|
||||
git archive --format=tar.gz --prefix="$project-$version/" "$version" \
|
||||
>"$project-$version.tar.gz"
|
||||
gpg --detach-sign "$@" --default-key 940047813E9D641C "$project-$version.tar.gz" \
|
||||
gpg --detach-sign "$@" --default-key "$key" "$project-$version.tar.gz" \
|
||||
>/tmp/"$project-$version".tar.gz.sig
|
||||
|
|
Loading…
Reference in a new issue