Also recognize gz files in upload script

This commit is contained in:
Zubin Duggal 2022-04-27 13:51:52 +05:30
parent 57004e93ac
commit eac10c0e25
No known key found for this signature in database
GPG Key ID: 7CCFC277A14C97A7

View File

@ -65,8 +65,8 @@ fi
function hash_files() {
echo $(find -maxdepth 1 \
-iname '*.xz' \
-o -iname '*.gz' \
-o -iname '*.lz' \
-o -iname '*.bz2' \
-o -iname '*.zip' \
)
echo $(find -maxdepth 1 -iname '*.patch')
@ -120,7 +120,7 @@ function upload() {
open -u hls-downloads: sftp://$host && \
mirror -P20 -c --reverse --exclude=fetch-gitlab --exclude=out . hls/$dir && \
wait all;"
chmod ugo-w $(ls *.xz *.bz2 *.zip)
chmod ugo-w $(ls *.xz *.gz *.zip)
}
function purge_all() {