From 464908347dabbf9db27aa0cff3d7b485022b037f Mon Sep 17 00:00:00 2001 From: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Sun, 23 Apr 2023 08:34:53 -0500 Subject: [PATCH] Remove unused distrobox-exported bins --- btop | 24 ------------------------ emacs | 24 ------------------------ nmap | 24 ------------------------ nmap_ssh | 16 ---------------- notmuch | 24 ------------------------ offlineimap | 24 ------------------------ wireshark | 24 ------------------------ 7 files changed, 160 deletions(-) delete mode 100755 btop delete mode 100755 emacs delete mode 100755 nmap delete mode 100755 nmap_ssh delete mode 100755 notmuch delete mode 100755 offlineimap delete mode 100755 wireshark diff --git a/btop b/btop deleted file mode 100755 index 7d71c40..0000000 --- a/btop +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# distrobox_binary -# name: default -if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then - command="/bin/distrobox-enter -n default -- /bin/btop --utf-force " - - for arg in "$@"; do - if echo "${arg}" | grep -Eq "'|\""; then - command="${command} \ - $(echo "${arg}" | sed 's|\\|\\\\|g' | - sed 's| |\\ |g' | - sed 's|\$|\\\$|g' | - sed "s|'|\\\'|g" | - sed 's|"|\\\"|g')" - elif echo "${arg}" | grep -q "'"; then - command="${command} \"${arg}\"" - else - command="${command} '${arg}'" - fi - done - eval ${command} -else - /bin/btop "$@" -fi diff --git a/emacs b/emacs deleted file mode 100755 index 1f6ef01..0000000 --- a/emacs +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# distrobox_binary -# name: default -if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then - command="/bin/distrobox-enter -n default -- /bin/emacs " - - for arg in "$@"; do - if echo "${arg}" | grep -Eq "'|\""; then - command="${command} \ - $(echo "${arg}" | sed 's|\\|\\\\|g' | - sed 's| |\\ |g' | - sed 's|\$|\\\$|g' | - sed "s|'|\\\'|g" | - sed 's|"|\\\"|g')" - elif echo "${arg}" | grep -q "'"; then - command="${command} \"${arg}\"" - else - command="${command} '${arg}'" - fi - done - eval ${command} -else - /bin/emacs "$@" -fi diff --git a/nmap b/nmap deleted file mode 100755 index edf03ee..0000000 --- a/nmap +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# distrobox_binary -# name: default_root -if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then - command="/bin/distrobox-enter --root -n default_root -- /bin/nmap " - - for arg in "$@"; do - if echo "${arg}" | grep -Eq "'|\""; then - command="${command} \ - $(echo "${arg}" | sed 's|\\|\\\\|g' | - sed 's| |\\ |g' | - sed 's|\$|\\\$|g' | - sed "s|'|\\\'|g" | - sed 's|"|\\\"|g')" - elif echo "${arg}" | grep -q "'"; then - command="${command} \"${arg}\"" - else - command="${command} '${arg}'" - fi - done - eval ${command} -else - /bin/nmap "$@" -fi diff --git a/nmap_ssh b/nmap_ssh deleted file mode 100755 index 9dd22ae..0000000 --- a/nmap_ssh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -# Use nmap from podman to check for open SSH ports on local subnet. -if test -x "$(command -v podman)"; then - if sudo podman image exists localhost/nmap; then - sudo podman run -it --rm \ - --cap-add=NET_RAW \ - --cap-add=NET_ADMIN \ - --network host \ - --name nmap \ - nmap -sV -p 22 -open 10.0.0.0/24 - else - echo "localhost/nmap image does not exist" - echo "Build it from github.com/hyperreal64/containerfiles" - fi -fi diff --git a/notmuch b/notmuch deleted file mode 100755 index 3eb681d..0000000 --- a/notmuch +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# distrobox_binary -# name: default -if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then - command="/bin/distrobox-enter -n default -- /bin/notmuch " - - for arg in "$@"; do - if echo "${arg}" | grep -Eq "'|\""; then - command="${command} \ - $(echo "${arg}" | sed 's|\\|\\\\|g' | - sed 's| |\\ |g' | - sed 's|\$|\\\$|g' | - sed "s|'|\\\'|g" | - sed 's|"|\\\"|g')" - elif echo "${arg}" | grep -q "'"; then - command="${command} \"${arg}\"" - else - command="${command} '${arg}'" - fi - done - eval ${command} -else - /bin/notmuch "$@" -fi diff --git a/offlineimap b/offlineimap deleted file mode 100755 index 597f294..0000000 --- a/offlineimap +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# distrobox_binary -# name: default_root -if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then - command="/bin/distrobox-enter --root -n default_root -- /bin/offlineimap " - - for arg in "$@"; do - if echo "${arg}" | grep -Eq "'|\""; then - command="${command} \ - $(echo "${arg}" | sed 's|\\|\\\\|g' | - sed 's| |\\ |g' | - sed 's|\$|\\\$|g' | - sed "s|'|\\\'|g" | - sed 's|"|\\\"|g')" - elif echo "${arg}" | grep -q "'"; then - command="${command} \"${arg}\"" - else - command="${command} '${arg}'" - fi - done - eval ${command} -else - /bin/offlineimap "$@" -fi diff --git a/wireshark b/wireshark deleted file mode 100755 index d801708..0000000 --- a/wireshark +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# distrobox_binary -# name: default_root -if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then - command="/bin/distrobox-enter --root -n default_root -- /bin/wireshark " - - for arg in "$@"; do - if echo "${arg}" | grep -Eq "'|\""; then - command="${command} \ - $(echo "${arg}" | sed 's|\\|\\\\|g' | - sed 's| |\\ |g' | - sed 's|\$|\\\$|g' | - sed "s|'|\\\'|g" | - sed 's|"|\\\"|g')" - elif echo "${arg}" | grep -q "'"; then - command="${command} \"${arg}\"" - else - command="${command} '${arg}'" - fi - done - eval ${command} -else - /bin/wireshark "$@" -fi