[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41097: authenticode-timestamping.sh: create $tmp_dir with mktemp -d



Title: GitLab

richard pushed to branch main at The Tor Project / Applications / tor-browser-build

Commits:

  • 800e2fff
    by Nicolas Vigier at 2024-02-29T12:37:42+00:00
    Bug 41097: authenticode-timestamping.sh: create $tmp_dir with mktemp -d
    

1 changed file:

Changes:

  • tools/signing/authenticode-timestamping.sh
    ... ... @@ -46,8 +46,8 @@ test -f "$osslsigncode_file" ||
    46 46
     which rename > /dev/null 2>&1 ||
    
    47 47
       exit_error '`rename` is missing.'
    
    48 48
     
    
    49
    -tmp_dir="$signed_dir/$tbb_version/tmp-timestamp"
    
    50
    -mkdir "$tmp_dir"
    
    49
    +tmp_dir=$(mktemp -d)
    
    50
    +trap "rm -Rf $tmp_dir" EXIT
    
    51 51
     tar -C "$tmp_dir" -xf "$osslsigncode_file"
    
    52 52
     export PATH="$PATH:$tmp_dir/osslsigncode/bin"
    
    53 53
     
    
    ... ... @@ -64,5 +64,3 @@ do
    64 64
     done
    
    65 65
     echo "Timestamped $COUNT .exe files, now renaming"
    
    66 66
     rename -f 's/-timestamped//' *-timestamped
    67
    -
    
    68
    -rm -Rf "$tmp_dir"

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits