Skip to content

Commit

Permalink
fixed shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
athalhammer committed Dec 13, 2023
1 parent 62327d8 commit 7cf6d0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpi/raspberry-danker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ export INDEX_FILE="index.html"
export PROJECT_LINKS=".allwiki.links"

filename=$(./danker.sh ALL)
VER=$(echo "$filename" | sed "s/$PROJECT_LINKS//")
bzip2 "$filename.rank"
VER=${filename//$PROJECT_LINKS/}
aws s3 cp s3://"$S3_BUCKET/$INDEX_FILE" .
cat ./rpi/template | sed "s/VERSION/$VER/" > tmp
sed "s/VERSION/$VER/" <./rpi/template > tmp
perl -i -p0e 's/ "distribution":\[/`cat tmp`/se' "$INDEX_FILE"
aws s3 cp "$INDEX_FILE" s3://"$S3_BUCKET"/ --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
aws s3 cp "$filename.rank.bz2" s3://"$S3_BUCKET"/ --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
Expand Down

0 comments on commit 7cf6d0b

Please sign in to comment.