summaryrefslogtreecommitdiff
path: root/tuf-stuff.sh
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-10-24 16:16:16 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-10-24 16:16:16 -0300
commit3b3429157c177beea21691d5136fa4a9b8d2eef1 (patch)
tree9640342f6260c1e815748171f4fa030ce402572a /tuf-stuff.sh
parent5edb0fb980224f8b60e1627930dc8a3c0a0bbb88 (diff)
Include TUF scripts in this repo.
Originally they were in the bitmask_client repo.
Diffstat (limited to 'tuf-stuff.sh')
-rwxr-xr-xtuf-stuff.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tuf-stuff.sh b/tuf-stuff.sh
index 8aa83ec..63c215f 100755
--- a/tuf-stuff.sh
+++ b/tuf-stuff.sh
@@ -109,7 +109,15 @@ do_init(){
VENVDIR=$WORKDIR/tuf.venv
BITMASK="Bitmask-linux$ARCH-$VERSION"
- RELEASE=$BASE/../bitmask_client/pkg/tuf/release.py
+ RELEASE=$BASE/release.py
+
+ if [[ ! -f $RELEASE ]]; then
+ echo "ERROR: you need to copy the release.py file into this directory."
+ fi
+
+ if [[ ! -f $KEY_FILE ]]; then
+ echo "ERROR: the specified key file does not exist."
+ fi
# Initialize path
mkdir -p $WORKDIR