From 26e97830234b952c48221c6d15102ae5be390322 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Wed, 2 Sep 2015 07:55:38 +0200 Subject: [PATCH] Don't change date when dos2unix'ing files --- scripts/astyle.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/astyle.sh b/scripts/astyle.sh index 9a1ece63585..91b719842df 100755 --- a/scripts/astyle.sh +++ b/scripts/astyle.sh @@ -29,16 +29,16 @@ if [ -z "$ASTYLE" ]; then fi if ! type -p flip >/dev/null; then - if type -p dos2unix >/dev/null; then - flip() { - dos2unix $2 - } - else - echo "flip not found" >&2 - flip() { - : - } - fi + if type -p dos2unix >/dev/null; then + flip() { + dos2unix -k $2 + } + else + echo "flip not found" >&2 + flip() { + : + } + fi fi if ! type -p autopep8 >/dev/null; then