From a7abd6e684b519bd88f2ec7dc574ff95ef81d654 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Tue, 6 Aug 2013 08:42:41 +0300 Subject: mklink.py: return the returncode of ln.exe --- mklink.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mklink.py b/mklink.py index 2bf281d..92ce50e 100644 --- a/mklink.py +++ b/mklink.py @@ -62,11 +62,11 @@ if (not args.symlink) and (not args.hardlink) and (not args.junction): args.symlink = True if args.symlink: - subprocess.call(['ln.exe', '-s', args.target, args.link]) + sys.exit(subprocess.call(['ln.exe', '-s', args.target, args.link])) elif args.hardlink: - subprocess.call(['ln.exe', args.target, args.link]) + sys.exit(subprocess.call(['ln.exe', args.target, args.link])) elif args.junction: - subprocess.call(['ln.exe', '-j', args.target, args.link]) + sys.exit(subprocess.call(['ln.exe', '-j', args.target, args.link])) else: print("invalid options!") sys.exit(1) -- cgit v1.2.3