8 lines
174 B
Bash
8 lines
174 B
Bash
#!/bin/sh
|
|
URL="$1"
|
|
OUTPUT_FILE="$2"
|
|
if [[ -z "$OUTPUT_FILE" ]]; then
|
|
OUTPUT_FILE="$(basename $URL)"
|
|
fi
|
|
wget $URL -O "$OUTPUT_FILE"
|
|
echo "::set-output name=file::$OUTPUT_FILE" |