19f148c s3-mirror: avoid potential unexpected shell-expansion, dedup

1 file Authored by praiskup 4 years ago, Committed by pingou 4 years ago,
    s3-mirror: avoid potential unexpected shell-expansion, dedup
    
    Doing this has risk that '*' expands to directories:
    
        $> x='echo *'
        $> $x
        bin boot dev etc home
    
    So it is better to use bash array (we have bash shebang anyways):
        $> x=( echo '*' )
        $> "${x[@]}"
        *
    
    Also de-duplicate few things so it is easier to concentrate on the code.
    
        
file modified
+106 -182