Merge pull request #4 from MorganGeek/bugfix/3-codacy-shell-script-issues

partial fix for #3 focused on codacy shell script issues
This commit is contained in:
Morgan 2019-11-23 00:01:26 +01:00 committed by GitHub
commit 46c4e91563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 7 deletions

View File

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

View File

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

View File

@ -1,3 +1,3 @@
#/usr/bin/env bash
#!/usr/bin/env bash
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")
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")
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