Skip to content

Commit

Permalink
Add check for installed libfaketime
Browse files Browse the repository at this point in the history
  • Loading branch information
lauft committed Mar 2, 2019
1 parent 5c6bd53 commit b248f13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/timemachine
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

if ! command -v faketime >/dev/null 2>&1 ; then
echo "timemachine requires libfaketime to be installed!"
exit 1
fi

# parse options/arguments
until [[ -z "${1}" ]] ; do
case "${1}" in
Expand Down

0 comments on commit b248f13

Please sign in to comment.