From 2c887db80bc48fea1ffe5822c5b787b15ca65c04 Mon Sep 17 00:00:00 2001 From: Mark Allen Date: Fri, 5 May 2017 11:17:09 -0500 Subject: Add a -f flag for balky mv 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. --- kerl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3