Improve autoinstall

This commit is contained in:
Tobias Reisinger 2022-10-17 21:37:38 +02:00
parent b5764c0376
commit 57cd02890a
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
8 changed files with 92 additions and 187 deletions

View file

@ -2,10 +2,12 @@
base_path="$HOME/.cache/remote-sources"
mkdir -p "$base_path"
file_path="$base_path/$1"
file_path="$base_path/$2"
if [ ! -f "$file_path" ]
then
echo "Installing file $1"
curl -Ls -o "$file_path" "$2"
echo "Installing file $2"
curl -Ls -o "$file_path" "$1"
fi
source $file_path
# shellcheck disable=SC1090
. "$file_path"