feat(bktemp):Add promptLoop template
[BK-2020-03.git] / user / bksign
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
12 FILEIN="$1"
13
14 # Check that provided argument is a file.
15 if ! [ -f "$FILEIN" ]; then
16 echo "ERROR: Invalid filename provided." 2>&1;
17 exit 1;
18 fi
19
20 # Determine output file name
21 FILEOUT="$FILEIN".asc
22 gpg --armor --verbose --output "$FILEOUT" --detach-sign "$FILEIN"
23
24 exit 1