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----------------- # -----------------Download Functions-----------------
set tempDir "/tmp/lean_theme" set tempDir "/tmp/lean_theme"
set deleteThese install.fish README.md
rm -rf $tempDir # Clone repository into $tempDir
git clone -q --depth=1 https://github.com/IlanCosman/lean.git $tempDir if test -e $tempDir
for file in $deleteThese rm -rf $tempDir
rm "$tempDir/$file"
end 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---------------- # ----------------Set Theme Variables----------------
# --------------Colors-------------- # --------------Colors--------------