Skip to content

Commit 5c7ddaa

Browse files
committed
devtool use install -Dt
install argument -t will ensure install_path is treated as a directory Signed-off-by: Matthew Buckingham-Bishop <[email protected]>
1 parent a2ba052 commit 5c7ddaa

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tools/devtool

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,12 +1180,6 @@ cmd_install() {
11801180
esac
11811181
shift
11821182
done
1183-
1184-
# Ensure install_path ends with a trailing slash
1185-
install_path="${install_path%/}/"
1186-
1187-
# Create the directory if it doesn't exist
1188-
mkdir -p "$install_path"
11891183

11901184
# Check that the binaries exist first
11911185
for binary in "${binaries[@]}"; do
@@ -1199,7 +1193,7 @@ cmd_install() {
11991193
# Install the binaries
12001194
for binary in "${binaries[@]}"; do
12011195
say "Installing $binary in $install_path"
1202-
install -m 755 "$( build_bin_path "$target" "$profile" "$binary" )" "$install_path"
1196+
install -m 755 "$( build_bin_path "$target" "$profile" "$binary" )" -Dt "$install_path"
12031197
done
12041198
}
12051199

0 commit comments

Comments
 (0)