"Fossies" - the Fresh Open Source Software Archive

Member "zun-4.0.0/tools/fast8.sh" (16 Oct 2019, 300 Bytes) of package /linux/misc/openstack/zun-4.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 cd $(dirname "$0")/..
    4 CHANGED=$(git diff --name-only HEAD~1 | tr '\n' ' ')
    5 
    6 # Skip files that don't exist
    7 # (have been git rm'd)
    8 CHECK=""
    9 for FILE in $CHANGED; do
   10     if [ -f "$FILE" ]; then
   11         CHECK="$CHECK $FILE"
   12     fi
   13 done
   14 
   15 diff -u --from-file /dev/null $CHECK | flake8 --diff
   16