From dff3af881cb53d000ff1cf9a26ed732f58869acf Mon Sep 17 00:00:00 2001 From: Simon Doppler Date: Sun, 3 Sep 2017 19:17:35 +0200 Subject: Check for missing programs --- al32-mktorrent.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'al32-mktorrent.sh') diff --git a/al32-mktorrent.sh b/al32-mktorrent.sh index d4c5d19..3190f0c 100644 --- a/al32-mktorrent.sh +++ b/al32-mktorrent.sh @@ -95,6 +95,18 @@ function create_torrent_for_arch () { python magnet2feed.py "$magnet_link" "$iso_date" } +### Check for if required programs are present + +which mktorrent 2>/dev/null || ( + echo "Missing mktorrent" + exit 1 +) + +python -c "import feedgenerator" 2>/dev/null || ( + echo "Missing python module feedgenerator" + exit 1 +) + ### Actual program declare -a architectures=("i686" "dual") -- cgit v1.2.3-70-g09d2