Skip to content

Commit

Permalink
Merge pull request #16 from mhristof/bug-redact-username
Browse files Browse the repository at this point in the history
bug-redact-username
  • Loading branch information
mhristof authored Mar 7, 2020
2 parents 8fd5e47 + 758b0af commit 2f69a45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ echo -n $dest</string>
<string>~/bin:~/.local/bin:~/.brew/opt/coreutils/libexec/gnubin:~/.brew/opt/make/libexec/gnubin:~/.brew/opt/grep/libexec/gnubin:~/.brew/opt/findutils/libexec/gnubin:~/Library/Python/3.7/bin:~/.brew/opt/python/libexec/bin:~/.brew/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin::~/.brew/opt/fzf/bin</string>
</dict>
<key>version</key>
<string>0.6.2</string>
<string>0.6.3</string>
<key>webaddress</key>
<string>https://github.com/mhristof/alfred-pbpaste</string>
</dict>
Expand Down
2 changes: 2 additions & 0 deletions redact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ pbpaste | while IFS= read line; do
line=$(echo $line | sed "s!${aws_secret}!${aws_secret:0:5}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx${aws_secret:35:40}!g")
fi

line=${line/$USER/username}

echo $line
done

Expand Down

0 comments on commit 2f69a45

Please sign in to comment.