chore(config-shared): Remove emacs config files
[BK-2020-03.git] / user / bksign
CommitLineData
0d22dfcd
SBS
1#!/bin/bash
2
3# Date: 2020-05-24T00:47Z
4
5# Author: Steven Baltakatei Sandoval
6
7# Description: A bash script that creates a gpg signature using
8# default key.
9
10# Usage: bksign [ file ]
11
12FILEIN="$1"
13
14# Check that provided argument is a file.
15if ! [ -f "$FILEIN" ]; then
16 echo "ERROR: Invalid filename provided." 2>&1;
17 exit 1;
18fi
19
20# Determine output file name
21FILEOUT="$FILEIN".asc
22gpg --armor --verbose --output "$FILEOUT" --detach-sign "$FILEIN"
23
24exit 1