fixes #3 codacy shell script issues #4

Merged
MorganGeek merged 1 commits from bugfix/3-codacy-shell-script-issues into master 2019-11-22 23:01:26 +00:00
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