feat: publish script and cleanup

This commit is contained in:
Andrejus
2021-05-02 21:53:29 +01:00
parent fb50593834
commit 1f569c7e09
22 changed files with 144 additions and 58 deletions

View File

@@ -15,7 +15,7 @@ setup_dir=${DOTFILES_DIR:-$HOME/.dotfiles}
# Prevent overwriting existing installation
mkdir -p $setup_dir
if [ -z `ls -A $setup_dir` ]; then
if [[ -z $(ls -A $setup_dir) ]]; then
echo "Setting up $setup_dir"
else
echo "Failed: Setup directory not empty $setup_dir"