summarylogtreecommitdiffstats
path: root/code-marketplace.hook
diff options
context:
space:
mode:
authorSainnhepark2020-12-04 16:54:03 +0800
committerSainnhepark2020-12-04 16:54:03 +0800
commit5c9faaecd172f3e87922bceb42e3e0f97830b96d (patch)
tree3ec769f1bacf69b8606d3f91739ae18e6e9f5bb5 /code-marketplace.hook
parent495f274b9fd60a6e31de726cbaf758b61beb23b6 (diff)
downloadaur-5c9faaecd172f3e87922bceb42e3e0f97830b96d.tar.gz
use a shell script to run the hook
Diffstat (limited to 'code-marketplace.hook')
-rw-r--r--code-marketplace.hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/code-marketplace.hook b/code-marketplace.hook
index b3048ed25786..f9923b2445c0 100644
--- a/code-marketplace.hook
+++ b/code-marketplace.hook
@@ -7,5 +7,5 @@ Target = usr/share/vscodium-bin/resources/app/product.json
[Action]
Description = Patching product.json...
-Exec = /usr/bin/bash -c "if [ -f /usr/lib/code/product.json ]; then /usr/bin/patch /usr/lib/code/product.json < /usr/share/code-marketplace/code-product.json.patch; elif [ -f /usr/share/vscodium-bin/resources/app/product.json ]; then /usr/bin/patch /usr/share/vscodium-bin/resources/app/product.json < /usr/share/code-marketplace/vscodium-bin-product.json.patch; fi"
+Exec = /usr/share/code-marketplace/patch.sh
When = PostTransaction