aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Allen <[email protected]>2017-05-05 11:17:09 -0500
committerMark Allen <[email protected]>2017-05-05 11:17:09 -0500
commit2c887db80bc48fea1ffe5822c5b787b15ca65c04 (patch)
tree88eed5657f128b4bd55c49d74ec2a71bc0e1fed8
parent5d5d138aa5f009f6d54e1220505a37f761a6e965 (diff)
downloadkerl-force-move.tar.gz
kerl-force-move.tar.bz2
kerl-force-move.zip
Add a -f flag for balky mvforce-move
Some Linuxes get cranky when you try to move files on top of an existing directory. So we add the -f flag to say it's ok to overwrite that old stuff.
-rwxr-xr-xkerl2
1 files changed, 1 insertions, 1 deletions
diff --git a/kerl b/kerl
index 885c11a..f15c139 100755
--- a/kerl
+++ b/kerl
@@ -526,7 +526,7 @@ do_normal_build()
# github tarballs have a directory in the form of "otp[_-]TAGNAME"
# Ericsson tarballs have the classic otp_src_RELEASE pattern
# Standardize on Ericsson format because that's what the rest of the script expects
- (cd "$UNTARDIRNAME" && tar xzf "$KERL_DOWNLOAD_DIR/$FILENAME.tar.gz" && mv ./* "$KERL_BUILD_DIR/$2/otp_src_$1")
+ (cd "$UNTARDIRNAME" && tar xzf "$KERL_DOWNLOAD_DIR/$FILENAME.tar.gz" && mv -f ./* "$KERL_BUILD_DIR/$2/otp_src_$1")
rm -rf "$UNTARDIRNAME"
fi