move install to bin
This commit is contained in:
parent
12f33a67d5
commit
7518d708fe
2 changed files with 18 additions and 2 deletions
|
|
@ -1,8 +1,11 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_NAME="convert_dirs.sh"
|
||||
INSTALL_DIR="/usr/local/bin"
|
||||
ROOT_SRC=".."
|
||||
ROOT_DST="/usr/local"
|
||||
|
||||
SCRIPT_NAME="$ROOT_SRC/convert_dirs.sh"
|
||||
INSTALL_DIR="$ROOT_DST/bin"
|
||||
TARGET_NAME="convert_dirs"
|
||||
|
||||
# Check script exists
|
||||
13
bin/uninstall.sh
Executable file
13
bin/uninstall.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
INSTALL_PATH="/usr/local/bin/convert_dirs"
|
||||
|
||||
if [[ ! -f "$INSTALL_PATH" ]]; then
|
||||
echo "❌ $INSTALL_PATH not found. Nothing to uninstall."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "🗑️ Removing $INSTALL_PATH ..."
|
||||
sudo rm "$INSTALL_PATH"
|
||||
echo "✅ Uninstalled successfully."
|
||||
Loading…
Add table
Reference in a new issue