mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-04 02:09:11 +00:00
zsteg: added uninstall script
This commit is contained in:
parent
ec75e3d081
commit
9b5a706ee7
2 changed files with 5 additions and 2 deletions
|
@ -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
3
zsteg/uninstall
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
echo "Y" | gem uninstall --user-install zsteg
|
Loading…
Reference in a new issue