From 12f33a67d550425bd520e3d3cb3cf2465cbc7568 Mon Sep 17 00:00:00 2001 From: ronny abraham Date: Mon, 12 May 2025 02:56:40 +0300 Subject: [PATCH] add install --- install.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..6a3a43a --- /dev/null +++ b/install.sh @@ -0,0 +1,19 @@ +#!/bin/bash +set -euo pipefail + +SCRIPT_NAME="convert_dirs.sh" +INSTALL_DIR="/usr/local/bin" +TARGET_NAME="convert_dirs" + +# Check script exists +if [[ ! -f "$SCRIPT_NAME" ]]; then + echo "❌ Error: $SCRIPT_NAME not found in current directory." >&2 + exit 1 +fi + +# Copy to install location +echo "📦 Installing $SCRIPT_NAME to $INSTALL_DIR/$TARGET_NAME ..." +sudo install -m 755 "$SCRIPT_NAME" "$INSTALL_DIR/$TARGET_NAME" + +echo "✅ Installed successfully." +echo "🔧 Run it with: $TARGET_NAME"