22 lines
520 B
Bash
22 lines
520 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
_cmd_su="su --login $_user -c"
|
||
|
_config_dir="/home/$_user/.config/lf"
|
||
|
|
||
|
set -e
|
||
|
|
||
|
_download_url="https://github.com/gokcehan/lf/releases/download/$_lf_version/lf-linux-amd64.tar.gz"
|
||
|
|
||
|
if [ -z $_config_loaded ] ; then
|
||
|
echo "No config loaded - loading '../config.sh'"
|
||
|
. ../config.sh
|
||
|
fi
|
||
|
|
||
|
# wget "$_download_url" -O /tmp/lf.tar.gz
|
||
|
# tar -xzvf /tmp/lf.tar.gz -C /usr/local/bin/
|
||
|
|
||
|
if [ -d "$_config_dir" ] ; then
|
||
|
rm -Rf "$_config_dir"
|
||
|
fi
|
||
|
$_cmd_su "git clone 'https://git.rayelliott.dev/dots/lf.git' '$_config_dir'"
|