summarylogtreecommitdiffstats
path: root/flutter-group-template.hook
blob: 2126ca28d28b4fb0e8320c14dd3b07197a57168d (plain)
1
2
3
4
5
6
7
8
9
10
11
[Trigger]
Type = Path
Operation = Upgrade
Operation = Install
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" && git config --global --add safe.directory "$FLUTTER_PATH"'