Skip to content

Instantly share code, notes, and snippets.

@TheLonelyGhost
Last active December 15, 2016 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheLonelyGhost/41337a170cb2e276fcf4d45b7f227f8f to your computer and use it in GitHub Desktop.
Save TheLonelyGhost/41337a170cb2e276fcf4d45b7f227f8f to your computer and use it in GitHub Desktop.
Fix for hooks being run out of order in RCM
134,136c134,136
< -exec \
< sh -c 'cd "`dirname $1`" && ./"`basename $1`"' arg0 '{}' \
< \;
---
> | sort | while read file; do
> sh -c 'cd "`dirname $1`" && ./"`basename $1`"' arg0 "$file"
> done
@TheLonelyGhost
Copy link
Author

Download rcm.sh.patch to a directory, then run the following:

# with root privileges
patch /usr/share/rcm/rcm.sh ./path/to/rcm.sh.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment