nmdc-log-service/scripts: fix wrong permissions on binary files inside tar archive

This commit is contained in:
mappu 2016-04-16 19:22:25 +12:00
parent a287b3adcc
commit 15455ff031

View File

@ -11,6 +11,7 @@ sanitise() {
local tmp=$(mktemp) local tmp=$(mktemp)
cat "$1" | perl -pe 's~C:.Users.......Documents.DEV.~C:/xxxxxxxxxxxxxxxxxxxxxxxxx/~g' > "$tmp" cat "$1" | perl -pe 's~C:.Users.......Documents.DEV.~C:/xxxxxxxxxxxxxxxxxxxxxxxxx/~g' > "$tmp"
mv "$tmp" "$1" mv "$tmp" "$1"
chmod 755 "$1"
} }
main() { main() {