X-Git-Url: https://git.xandkar.net/?p=khome.git;a=blobdiff_plain;f=home%2Fbin%2Fdotnet-new-cleanup;h=c8ef9f62b12ba71c12889ce6ffadce173edee2f8;hp=d5b5044c6a9c663c9ded3abc74286c8ac060d065;hb=57b370f077fd4a850f4ece6680f2971d623cc909;hpb=2fd24ac00de73edb18a42921b7f79f4b1559aab8 diff --git a/home/bin/dotnet-new-cleanup b/home/bin/dotnet-new-cleanup index d5b5044..c8ef9f6 100755 --- a/home/bin/dotnet-new-cleanup +++ b/home/bin/dotnet-new-cleanup @@ -36,15 +36,21 @@ _delete() { done } - echo 'BOM:' echo '----' _find "$BOM" -_find "$BOM" | _delete "$BOM" echo '' echo 'Trailing carriage return:' echo '-------------------------' _find '\r' -_find '\r' | _delete '\r' + +case "$2" in + -delete) + _find '\r' | _delete '\r' + _find "$BOM" | _delete "$BOM" + ;; + *) + :;; +esac