# --- Safety checks ----------------------------------------- # 1️⃣ Make sure the source exists if [[ ! -e "$SRC" ]]; then echo "❌ Error: source '$SRC' does not exist." exit 1 fi
./copy_megalink.sh
# --- Configurable variables --------------------------------- SRC="megalink" # source file (or directory) DST="new" # destination path (file or directory) cp megalink new
#!/usr/bin/env bash # ------------------------------------------------- # copy_megalink.sh – safe copy of a file called "megalink" # ------------------------------------------------- cp megalink new