Skip to content

Commit

Permalink
fixes #3 codacy shell script issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan committed Nov 22, 2019
1 parent 98f86a2 commit 8ad6db4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions active_hours.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
git log --author="Morgan" \
--format="%ad" \
--date="format:%H" |\
Expand Down
2 changes: 1 addition & 1 deletion count_commits.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#/usr/bin/env bash
#!/usr/bin/env bash
git rev-list HEAD --count
4 changes: 2 additions & 2 deletions count_links.sh
Original file line number Diff line number Diff line change
@@ -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 ' '
4 changes: 2 additions & 2 deletions top_domains.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions top_extensions.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8ad6db4

Please sign in to comment.