Skip to content

Commit

Permalink
Merge pull request #27 from whalehub/patch-1
Browse files Browse the repository at this point in the history
Fix regex for stripping leading hyphens from shell names
  • Loading branch information
ahnick committed Jan 17, 2022
2 parents 2bdb88e + 4c60d5f commit dda7274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encpass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ encpass_checks() {
# Name of shell script or shell that called encpass.sh
# Remove any preceding hyphens, so that ENCPASS_SNAME is not interpretted later
# as a command line parameter to basename or any other command.
ENCPASS_SNAME="$(echo "$0" | sed 's/^.-//g')"
ENCPASS_SNAME="$(echo "$0" | sed 's/^-*//g')"

ENCPASS_CHECKS=1
}
Expand Down

0 comments on commit dda7274

Please sign in to comment.