This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
install-scripts/pkg-setup/lf.sh

22 lines
520 B
Bash
Executable File

#!/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'"