Skip to content
Snippets Groups Projects
Commit 496ea672 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: Further adjustments to immv/imcp exit code handling

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