]> git.droids-corp.org - dpdk.git/blobdiff - devtools/checkpatches.sh
devtools: use a common prefix for temporary files
[dpdk.git] / devtools / checkpatches.sh
index dbed422e88e65baa6bc990f08e9fb3504665cb5a..bf3114f954d04c75bd9f31017a47432b4b2f6e10 100755 (executable)
@@ -90,11 +90,11 @@ check () { # <patch> <commit> <title>
        if [ -n "$1" ] ; then
                tmpinput=$1
        elif [ -n "$2" ] ; then
        if [ -n "$1" ] ; then
                tmpinput=$1
        elif [ -n "$2" ] ; then
-               tmpinput=$(mktemp checkpatches.XXXXXX)
+               tmpinput=$(mktemp -t dpdk.checkpatches.XXXXXX)
                git format-patch --find-renames \
                --no-stat --stdout -1 $commit > "$tmpinput"
        else
                git format-patch --find-renames \
                --no-stat --stdout -1 $commit > "$tmpinput"
        else
-               tmpinput=$(mktemp checkpatches.XXXXXX)
+               tmpinput=$(mktemp -t dpdk.checkpatches.XXXXXX)
                cat > "$tmpinput"
        fi
 
                cat > "$tmpinput"
        fi