fixes #3 codacy shell script issues

This commit is contained in:
Morgan 2019-11-22 23:43:55 +01:00
parent 98f86a22b8
commit 8ad6db49fd
5 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
git log --author="Morgan" \ git log --author="Morgan" \
--format="%ad" \ --format="%ad" \
--date="format:%H" |\ --date="format:%H" |\

View File

@ -1,2 +1,2 @@
#/usr/bin/env bash #!/usr/bin/env bash
git rev-list HEAD --count git rev-list HEAD --count

View File

@ -1,3 +1,3 @@
#/usr/bin/env bash #!/usr/bin/env bash
BASEDIR=$(dirname "$0") BASEDIR=$(dirname "$0")
cat "$BASEDIR/README.md" | cut -d'(' -f2 | cut -d')' -f1 | egrep "^http*" | sort -u | wc -l | tr -d ' ' cut -d'(' -f2 "$BASEDIR/README.md" | cut -d')' -f1 | grep -E "^http*" | sort -u | wc -l | tr -d ' '

View File

@ -1,3 +1,3 @@
#/usr/bin/env bash #!/usr/bin/env bash
BASEDIR=$(dirname "$0") BASEDIR=$(dirname "$0")
cat "$BASEDIR/README.md" | cut -d'(' -f2 | cut -d')' -f1 | egrep "^http*" | awk -F/ '{print $3}' | sort | uniq -c | sort -n cut -d'(' -f2 "$BASEDIR/README.md" | cut -d')' -f1 | grep -E "^http*" | awk -F/ '{print $3}' | sort | uniq -c | sort -n

View File

@ -1,3 +1,3 @@
#/usr/bin/env bash #!/usr/bin/env bash
BASEDIR=$(dirname "$0") BASEDIR=$(dirname "$0")
cat "$BASEDIR/README.md" | cut -d'(' -f2 | cut -d')' -f1 | egrep "^http*" | awk -F/ '{print $3}' | sed -E -e 's_.*\.([^\.]+)$_\1_g' | sort | uniq -c | sort -n cut -d'(' -f2 "$BASEDIR/README.md" | cut -d')' -f1 | grep -E "^http*" | awk -F/ '{print $3}' | sed -E -e "s_.*\.([^\.]+)\$_\1_g" | sort | uniq -c | sort -n