Commit 496ea672 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Further adjustments to immv/imcp exit code handling

parent a3c38e7f
......@@ -53,12 +53,18 @@ def main(argv=None):
print(usage)
return 1
srcs = fslpath.removeDuplicates(srcs,
allowedExts=fslimage.ALLOWED_EXTENSIONS,
fileGroups=fslimage.FILE_GROUPS)
try:
srcs = fslpath.removeDuplicates(
srcs,
allowedExts=fslimage.ALLOWED_EXTENSIONS,
fileGroups=fslimage.FILE_GROUPS)
for src in srcs:
imcp.imcp(src, dest, useDefaultExt=True, overwrite=True)
for src in srcs:
imcp.imcp(src, dest, useDefaultExt=True, overwrite=True)
except Exception as e:
print(str(e))
return 1
return 0
......
......@@ -54,12 +54,18 @@ def main(argv=None):
print(usage)
return 1
srcs = fslpath.removeDuplicates(srcs,
allowedExts=fslimage.ALLOWED_EXTENSIONS,
fileGroups=fslimage.FILE_GROUPS)
try:
srcs = fslpath.removeDuplicates(
srcs,
allowedExts=fslimage.ALLOWED_EXTENSIONS,
fileGroups=fslimage.FILE_GROUPS)
for src in srcs:
imcp.immv(src, dest, useDefaultExt=True, overwrite=True)
for src in srcs:
imcp.immv(src, dest, useDefaultExt=True, overwrite=True)
except Exception as e:
print(str(e))
return 1
return 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment