X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=tools%2Finstall.sh;h=d913b60bf24fc0589a211bc4f83dd0ce9d3c983a;hb=6fef8cafbd0f6f185897bc87feb1ff66e2e204e1;hp=7dcea333ea6d7ad8a89b739ae1dd6b196246e4fe;hpb=e678fc6f32e5e5c013ab4f99c38f5703b15ff6cd;p=musl diff --git a/tools/install.sh b/tools/install.sh index 7dcea333..d913b60b 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -51,15 +51,14 @@ if test "$symlink" ; then ln -s "$1" "$tmp" else cat < "$1" > "$tmp" +chmod "$mode" "$tmp" fi -mv "$tmp" "$2" +mv -f "$tmp" "$2" test -d "$2" && { rm -f "$2/$tmp" printf "%s: %s is a directory\n" "$0" "$dst" 1>&2 exit 1 } -test "$symlink" || chmod "$mode" "$2" - exit 0