summarylogtreecommitdiffstats
path: root/flutter-group-template.hook
diff options
context:
space:
mode:
Diffstat (limited to 'flutter-group-template.hook')
-rwxr-xr-x[-rw-r--r--]flutter-group-template.hook8
1 files changed, 4 insertions, 4 deletions
diff --git a/flutter-group-template.hook b/flutter-group-template.hook
index 597346685d5..2126ca28d28 100644..100755
--- a/flutter-group-template.hook
+++ b/flutter-group-template.hook
@@ -1,11 +1,11 @@
[Trigger]
-Type = Package
+Type = Path
Operation = Upgrade
Operation = Install
-Target = flutter
-Target = flutter-group-pacman-hook
+Target = $FLUTTER_PATH/version
+Target = usr/share/libalpm/hooks/flutter-group.hook
[Action]
Description = Granting permission to group $FLUTTER_GROUP for flutter SDK ($FLUTTER_PATH)
When = PostTransaction
-Exec = /bin/sh -c 'chown -R :$FLUTTER_GROUP "$FLUTTER_PATH" && chmod -R g+w "$FLUTTER_PATH"'
+Exec = /bin/sh -c 'chown -R :$FLUTTER_GROUP "$FLUTTER_PATH" && chmod -R g+w "$FLUTTER_PATH" && git config --global --add safe.directory "$FLUTTER_PATH"'