diff options
author | Dave Heller <hellerda@linux.vnet.ibm.com> | 2018-04-17 19:25:34 -0400 |
---|---|---|
committer | Dave Heller <hellerda@linux.vnet.ibm.com> | 2018-04-17 19:25:34 -0400 |
commit | c914d3d8b09440d3607c6bd90fedf333a5cba902 (patch) | |
tree | bf273838e4406e01dd579054b8f6adfa627d85ca | |
parent | a9a28ccf787f49acbef5c0d8c36530ca60fcd123 (diff) | |
download | sb-signing-utils-c914d3d8b09440d3607c6bd90fedf333a5cba902.tar.gz sb-signing-utils-c914d3d8b09440d3607c6bd90fedf333a5cba902.zip |
Don't use cp -T option in shell scripts
because AIX doesn't like it. In this case, can get the same result by just
deleting the destination directory first.
Signed-off-by: Dave Heller <hellerda@linux.vnet.ibm.com>
-rwxr-xr-x | crtSignedContainer.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crtSignedContainer.sh b/crtSignedContainer.sh index 31b96fb..afefe21 100755 --- a/crtSignedContainer.sh +++ b/crtSignedContainer.sh @@ -141,7 +141,8 @@ importArchive () { if [ -d "$archsubdir" ]; then # We already have this subdir in the cache, make a backup - cp -rpT "$archsubdir" "$archsubdir.save" + rm -rf "$archsubdir.save" + cp -rp "$archsubdir" "$archsubdir.save" else # We don't yet have a subdir by this name, create it mkdir "$archsubdir" |