#!/bin/bash target="$HOME/.local/bin" echo "installing $2 to $1" if test -f $2; then cp $2 "$target/$1" chmod +x "$target/$1" else echo "file $2 doesnt exist" fi