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