summaryrefslogtreecommitdiff
path: root/tf2_watch
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-09-29 13:56:32 -0500
committerFurkan Sahin <furkan-dev@proton.me>2021-09-29 13:56:32 -0500
commit9c3cc82028f1b064ee5dc4e7b348e1021907e01a (patch)
treea4331d82d42b1f92499f00c45bbe12249335bd16 /tf2_watch
parentdbf4037f1ed2ba06fa4d63b6c6c0b6094e09a978 (diff)
Try to resolve dependancies before runningHEADmain
Diffstat (limited to 'tf2_watch')
-rwxr-xr-xtf2_watch10
1 files changed, 10 insertions, 0 deletions
diff --git a/tf2_watch b/tf2_watch
index b8e205b..5cf294a 100755
--- a/tf2_watch
+++ b/tf2_watch
@@ -9,6 +9,16 @@ if [ -z "${TIME_BETWEEN_SAMPLES}" ]; then
TIME_BETWEEN_SAMPLES="25"
fi
+depends() {
+ if ! type "$1" >/dev/null; then
+ die "\"$1\" must be installed and in your \$PATH"
+ fi
+}
+
+depends pkill
+depends mupdf
+depends rosrun
+
GENERATED_PDF="frames.pdf"
GENERATED_RV="frames.gv"