Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
Reorganize python scripts in a separate directory. (closes #25)
Browse files Browse the repository at this point in the history
  • Loading branch information
dashohoxha committed May 31, 2018
1 parent 024f16b commit d108baf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cmd_sign() {

# sign
gnupghome_setup
python3 "$LIBDIR/cmd/gpg-sign.py" $GPG_KEY "$file"
call_gpg sign.py $GPG_KEY "$file"
gnupghome_reset
}

Expand Down
7 changes: 7 additions & 0 deletions src/egpg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ call_fn() {
$fn "$@"
}

call_gpg() {
local file=$1; shift
local pyfile="$LIBDIR/gpg/$file"
[[ -f "$pyfile" ]] || fail "Cannot find python file: $pyfile"
python3 "$pyfile" "$@"
}

call_ext() {
local cmd=$1; shift

Expand Down
File renamed without changes.

0 comments on commit d108baf

Please sign in to comment.