Improve autoinstall
This commit is contained in:
parent
b5764c0376
commit
57cd02890a
8 changed files with 92 additions and 187 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue