Merge pull request #13446 from XuehaiPan/shfmt-write

utils/shfmt.sh: allow long shfmt arguments
This commit is contained in:
Bo Anderson 2022-06-19 00:06:03 +01:00 committed by GitHub
commit 4a422376bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ do
shift shift
break break
fi fi
if [[ "${arg}" == "-w" ]] if [[ "${arg}" == "-w" || "${arg}" == "--write" ]]
then then
shift shift
INPLACE=1 INPLACE=1