1
0
Fork 0

shellcheck some scripts

This commit is contained in:
Jeremy Kaplan 2018-09-10 09:39:23 -07:00 committed by Jeremy Kaplan
commit e414d8e14b
3 changed files with 9 additions and 7 deletions

View file

@ -1,13 +1,15 @@
#!/bin/sh
#!/bin/bash
if [[ -z "$1" ]]; then
if [ -z "$1" ]; then
echo 'Nothing to get'
exit 1
fi
contents=$(gopass show $1) || exit 1
set -euo pipefail
contents=$(gopass show "$1") || exit 1
echo "$contents" | grep '^user:' | cut -d' ' -f2 | xsel -b
echo 'Username clipped'
read
read -r _
gopass show --clip $1
gopass show --clip "$1"

View file

@ -4,7 +4,7 @@ set -euo pipefail
timespec="$1"
message="$2"
cmd="notify-send '$1' '$2'"
cmd="notify-send '${message}'"
echo "$cmd" | at -M "$timespec"
atq