Verified Commit 17547cc6 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

reproducible debian live: shellcheck



Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent ee995b43
...@@ -21,7 +21,8 @@ NODE=osuosl173-amd64.debian.net ...@@ -21,7 +21,8 @@ NODE=osuosl173-amd64.debian.net
rsync_remote_results() { rsync_remote_results() {
local description=$1 local description=$1
local origfile=$2 local origfile=$2
local filename=$(basename "$3") local filename
filename=$(basename "$3")
echo "$(date -u) - Starting to sync $description to '$filename'." echo "$(date -u) - Starting to sync $description to '$filename'."
# Copy the new results from the build node to the web server node # Copy the new results from the build node to the web server node
cd "$BASE"/"$PROJECT" cd "$BASE"/"$PROJECT"
...@@ -36,7 +37,8 @@ rsync_remote_results() { ...@@ -36,7 +37,8 @@ rsync_remote_results() {
delete_live_build_file() { delete_live_build_file() {
local description=$1 local description=$1
local filetodelete=$2 local filetodelete=$2
local filename=$(basename "$filetodelete") local filename
filename=$(basename "$filetodelete")
echo "$(date -u) - Delete $description: '$filename'." echo "$(date -u) - Delete $description: '$filename'."
cd "$BASE"/"$PROJECT" cd "$BASE"/"$PROJECT"
if [[ "$filename" != "$filetodelete" ]]; then if [[ "$filename" != "$filetodelete" ]]; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment