aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mklink.py6
1 files 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)