aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2013-08-06 08:42:41 +0300
committerOskari Timperi <oskari.timperi@iki.fi>2013-08-06 08:42:41 +0300
commita7abd6e684b519bd88f2ec7dc574ff95ef81d654 (patch)
tree6316110f173196b840372711f6e9147112cbcec5
parentef5588d3f2ef5dc8dbddd6a1945af9a1c4015b4b (diff)
downloadpy-mklink-wrapper-a7abd6e684b519bd88f2ec7dc574ff95ef81d654.tar.gz
py-mklink-wrapper-a7abd6e684b519bd88f2ec7dc574ff95ef81d654.zip
mklink.py: return the returncode of ln.exeHEADmaster
-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)