diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-08-02 14:17:34 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-08-02 14:17:34 +0200 |
commit | 7365f7d0bce4b2656af7079340732622e6fcf9ce (patch) | |
tree | 5097e52ce05dd0788a04aaa8b17108b15c9b682e /update | |
parent | a5b64423926564e960782a7ac0dc58ba383c2da0 (diff) |
generate per update files
Diffstat (limited to 'update')
-rw-r--r-- | update | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,8 +1,10 @@ #!/bin/bash - - -date > /tmp/git_update_test - refname="$1" -printf "refname: %s" "${refname}" >> /tmp/git_update_test +sha_old="$2" +sha_new="$3" +base_refname=$(base64 "${refname}") +target_file="/tmp/git_update_${base_refname}_test" + +date > "${target_file}" +printf "refname: %s" "${refname}\nsha1-old: ${sha_old}\nsha1-new: ${sha_new}" >> "${target_file}" |