ソースを参照

Merge pull request #30522 from gazoo74/fix-make-install

Fix installation using make install
Akihiro Suda 8 年 前
コミット
48dd90d398
1 ファイル変更1 行追加0 行削除
  1. 1 0
      hack/make.sh

+ 1 - 0
hack/make.sh

@@ -251,6 +251,7 @@ install_binary() {
 	target="${DOCKER_MAKE_INSTALL_PREFIX:=/usr/local}/bin/"
 	target="${DOCKER_MAKE_INSTALL_PREFIX:=/usr/local}/bin/"
 	if [ "$(go env GOOS)" == "linux" ]; then
 	if [ "$(go env GOOS)" == "linux" ]; then
 		echo "Installing $(basename $file) to ${target}"
 		echo "Installing $(basename $file) to ${target}"
+		mkdir -p "$target"
 		cp -L "$file" "$target"
 		cp -L "$file" "$target"
 	else
 	else
 		echo "Install is only supported on linux"
 		echo "Install is only supported on linux"