shell/sk/bin/sk-pass: check for dependencies
This commit is contained in:
parent
6c1c75fe08
commit
56993cabeb
|
@ -10,6 +10,13 @@
|
||||||
set -e
|
set -e
|
||||||
shopt -s nullglob globstar
|
shopt -s nullglob globstar
|
||||||
|
|
||||||
|
for prog in xsel notify-send pass; do
|
||||||
|
if ! command -v "$prog" >/dev/null; then
|
||||||
|
>&2 echo "$prog not installed, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
if [[ $1 == -r ]]; then
|
if [[ $1 == -r ]]; then
|
||||||
resume=1; shift
|
resume=1; shift
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue