summarylogtreecommitdiffstats
path: root/code-marketplace.hook
diff options
context:
space:
mode:
authorSainnhepark2020-12-05 08:37:33 +0800
committerSainnhepark2020-12-05 08:37:33 +0800
commit5fd1ae9d26bbf6d48fa22850c883394aa27cec91 (patch)
tree5700909ec591a072ce80a65c8cba0cddc4167dc0 /code-marketplace.hook
parent0de3a0e775de0c17ed9a85d4e5a6d227efef86dc (diff)
downloadaur-5fd1ae9d26bbf6d48fa22850c883394aa27cec91.tar.gz
path detection
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 5e685e15dd88..835af73254e7 100644
--- a/code-marketplace.hook
+++ b/code-marketplace.hook
@@ -6,5 +6,5 @@ Target = usr/lib/code/product.json
[Action]
Description = Patching product.json...
-Exec = /usr/bin/bash -c "/usr/bin/patch /usr/lib/code/product.json < /usr/lib/code/product_json.patch"
+Exec = /usr/bin/bash -c "[ -f /usr/lib/code/product.json ] && /usr/bin/patch /usr/lib/code/product.json </usr/lib/code/product_json.patch || echo 'Failed to patch product.json. This package is only tested in [community/code 1.50.1-1].'"
When = PostTransaction