mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
19 lines
459 B
Bash
Executable File
19 lines
459 B
Bash
Executable File
#!/bin/bash
|
|
# tests/acceptance/scripts/generate-virus-files.sh
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
TARGET_DIR="$SCRIPT_DIR/../filesForUpload/filesWithVirus"
|
|
|
|
echo "Generating EICAR test files..."
|
|
|
|
mkdir -p "$TARGET_DIR"
|
|
|
|
cd "$TARGET_DIR"
|
|
|
|
echo "Downloading eicar.com..."
|
|
curl -s -o eicar.com https://secure.eicar.org/eicar.com
|
|
|
|
echo "Downloading eicar_com.zip..."
|
|
curl -s -o eicar_com.zip https://secure.eicar.org/eicar_com.zip |