You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@"rm \"$PLIST_PATH\"\n" ] ; // Remove the plist file
648
+
@"/bin/rm -f \"$PLIST_PATH\"\n" ] ; // Remove the plist file, if still present. It might be gone if a previous run of this method was in process and had not deleted it before this method was invoked again.
650
649
}
651
650
[formatString appendString:
652
-
@"rm \"%@\"\n"] ;// Remove this script's file (self-destruct)
653
-
NSString* cmd = [NSStringstringWithFormat:
654
-
formatString,
655
-
plistPath,
656
-
delaySeconds,
657
-
cmdPath] ;
651
+
@"/bin/rm \"%@\"\n"] ; // Remove this script's file (self-destruct)
652
+
NSString* script = [NSStringstringWithFormat:
653
+
formatString,
654
+
plistPath,
655
+
delaySeconds,
656
+
scriptPath] ;
658
657
[formatString release] ;
659
658
660
-
// Write the command to a file
661
-
NSData* data = [cmddataUsingEncoding:NSUTF8StringEncoding] ;
0 commit comments