15 lines
170 B
Plaintext
15 lines
170 B
Plaintext
|
#!/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
|
||
|
|
||
|
|