summaryrefslogtreecommitdiff
path: root/update
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-02 14:17:34 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-02 14:17:34 +0200
commit7365f7d0bce4b2656af7079340732622e6fcf9ce (patch)
tree5097e52ce05dd0788a04aaa8b17108b15c9b682e /update
parenta5b64423926564e960782a7ac0dc58ba383c2da0 (diff)
generate per update files
Diffstat (limited to 'update')
-rw-r--r--update12
1 files changed, 7 insertions, 5 deletions
diff --git a/update b/update
index 4fbc8c5..94de092 100644
--- a/update
+++ b/update
@@ -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}"