12 lines
213 B
Text
12 lines
213 B
Text
|
base_path="$HOME/.cache/remote-sources"
|
||
|
mkdir -p "$base_path"
|
||
|
file_path="$base_path/$1"
|
||
|
if [ ! -f "$file_path" ]
|
||
|
then
|
||
|
echo "Installing file $1"
|
||
|
curl -Ls -o "$file_path" "$2"
|
||
|
fi
|
||
|
source $file_path
|
||
|
|
||
|
# vim: ft=bash
|