Ignore:
Timestamp:
2019-11-20T11:30:47+13:00 (4 years ago)
Author:
davidb
Message:

Changed code so api key can be in separate file, and passed in on the command-line to the Java code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/malware-checker/trunk/java/AddComment.sh

    r33665 r33708  
    11#!/bin/bash
    22
    3 java -cp target/malware-checker-1.0-SNAPSHOT-jar-with-dependencies.jar org.greenstone.virustotal.AddComment $*
     3if [ -f virustotal-key.txt ] ; then
     4    apikey=`cat virustotal-key.txt`
     5fi
     6
     7java -cp target/malware-checker-1.0-SNAPSHOT-jar-with-dependencies.jar org.greenstone.virustotal.AddComment $apikey $*
    48
    59       
Note: See TracChangeset for help on using the changeset viewer.