mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +02:00
Use temporary file
This commit is contained in:
parent
756e5c1b72
commit
436a6560cd
1 changed files with 4 additions and 3 deletions
|
@ -1,11 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
FORMAT_CMD="indent -linux -l80 -i2 -nut"
|
||||
echo $1
|
||||
FILE=$1
|
||||
TMP=$(mktemp)
|
||||
|
||||
$FORMAT_CMD $1 -o $1.format-test
|
||||
$FORMAT_CMD $FILE -o $TMP
|
||||
|
||||
diff $1 $1.format-test > /dev/null
|
||||
diff $FILE $TMP > /dev/null
|
||||
#ret=$?
|
||||
#
|
||||
#if [[ $ret -eq 0 ]]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue