summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Heller <hellerda@linux.vnet.ibm.com>2018-04-17 19:25:34 -0400
committerDave Heller <hellerda@linux.vnet.ibm.com>2018-04-17 19:25:34 -0400
commitc914d3d8b09440d3607c6bd90fedf333a5cba902 (patch)
treebf273838e4406e01dd579054b8f6adfa627d85ca
parenta9a28ccf787f49acbef5c0d8c36530ca60fcd123 (diff)
downloadsb-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-xcrtSignedContainer.sh3
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"
OpenPOWER on IntegriCloud