mirror of
https://github.com/dewomser/Raspi-auto-downloader.git
synced 2026-03-13 16:57:16 +01:00
Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
commit
ea7400e183
2 changed files with 3 additions and 3 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
|
@ -10,6 +10,6 @@ jobs:
|
|||
name: Shellcheck
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run ShellCheck
|
||||
uses: ludeeus/action-shellcheck@master
|
||||
|
|
|
|||
|
|
@ -51,11 +51,11 @@ fi
|
|||
cd "$HOME/Downloads" || echo"Downloads Ordner nicht vorhanden"
|
||||
|
||||
|
||||
dirr=$(curl --silent https://downloads.raspberrypi.org/$rimage/images/ | grep -o -E "$rimage-$datum" | tail -1 )
|
||||
dirr=$(curl --silent "https://downloads.raspberrypi.org/$rimage/images/" | grep -o -E "$rimage-$datum" | tail -1 )
|
||||
pathr="https://downloads.raspberrypi.org/$rimage/images/$dirr/"
|
||||
#rname=$(curl --silent "$pathr" | grep -o -E -w "$datum-[[:lower:]-]*\.zip" | head -1)
|
||||
#rname=$(curl --silent "$pathr" | grep -o -E "$datum-[[:alnum:]-]*\.xz" | head -1)
|
||||
rname=$(curl --silent "$pathr" | grep -o -E "$datum-[[:alnum:]-]*\.img.\xz"|tail -1)
|
||||
rname=$(curl --silent "$pathr" | grep -o -E "$datum-[[:alnum:]-]*\.img\.xz"|tail -1)
|
||||
|
||||
wget -c "$pathr""$rname" -O "raspi$attribut".xz
|
||||
#echo Test kompletter Pfad :: "$pathr""$rname"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue