zsteg: added uninstall script

This commit is contained in:
Michael Rodler 2018-04-20 15:28:09 +02:00 committed by Yan
parent ec75e3d081
commit 9b5a706ee7
2 changed files with 5 additions and 2 deletions

View file

@ -8,7 +8,7 @@ MAGIC="# ctf-tools: gem install"
for f in ~/.bashrc ~/.zshrc; do
if [[ -e "$f" ]]; then
if ! grep "$MAGIC" "$f" >/dev/null 2>&1; then
cat >> "$f" << EOF
cat >> "$f" <<EOF
$MAGIC
export PATH=\$PATH:$GEM_BIN_PATH
EOF
@ -19,7 +19,7 @@ done
f=~/.config/fish/config.fish
if [[ -e "$f" ]]; then
if ! grep "$MAGIC" "$f" >/dev/null 2>&1; then
cat >> "$f" << EOF
cat >> "$f" <<EOF
$MAGIC
set -x PATH \$PATH $GEM_BIN_PATH
EOF

3
zsteg/uninstall Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash -ex
echo "Y" | gem uninstall --user-install zsteg