Fix installer

This commit is contained in:
Ilan Cosman 2020-04-16 01:48:40 -07:00
parent 76c9a4a447
commit a2bbc7a0c8

View File

@ -2,14 +2,21 @@ echo "Installing lean theme..."
# -----------------Download Functions-----------------
set tempDir "/tmp/lean_theme"
set deleteThese install.fish README.md
rm -rf $tempDir
git clone -q --depth=1 https://github.com/IlanCosman/lean.git $tempDir
for file in $deleteThese
rm "$tempDir/$file"
# Clone repository into $tempDir
if test -e $tempDir
rm -rf $tempDir
end
cp -r $tempDir $__fish_config_dir
git clone -q https://github.com/IlanCosman/lean.git $tempDir
# Remove unnecessary files
rm "$tempDir/install.fish"
rm "$tempDir/README.md"
rm -rf "$tempDir/.git/"
# Copy directory contents into $__fish_config_dir and cleanup
cp -rf "$tempDir/." $__fish_config_dir
rm -rf $tempDir
# ----------------Set Theme Variables----------------
# --------------Colors--------------