Skip to content

Instantly share code, notes, and snippets.

@alexmchale
Created May 27, 2010 00:31
Show Gist options
  • Save alexmchale/415263 to your computer and use it in GitHub Desktop.
Save alexmchale/415263 to your computer and use it in GitHub Desktop.
- (void) initiateHash
{
NSString *md5f = @"md5 %@ ; e=$?; if [ $e -eq 127 ]; then exec md5sum %@; else exit $e; fi";
NSString *pat = [file escapedRelativePath];
NSString *md5Cmd = [NSString stringWithFormat:md5f, pat, pat];
self.dispatcher = [[CommandDispatcher alloc] initWithProject:project session:session command:md5Cmd];
[dispatcher release];
state = SS_CONTINUE_HASH;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment