diff --git a/crackle b/crackle index 05db859..9798645 100755 --- a/crackle +++ b/crackle @@ -114,9 +114,9 @@ APT_CACHE="apt-cache -o Dir::Cache=$APTCACHE -o Dir::State=$APTSTATE -o Dir::Etc # Installs/updates Crackle into ~/.local ~/.config and ~/.cache [ "$operation" = "setup" ] && { - [[ ! -f "$SCRP_DIR/bin/*" ]] && err "submodule missing"; [[ $(basename $SCRP_DIR) = "bin" && -d $HOME/crackle ]] && rm -r $HOME/crackle; [[ $(basename $SCRP_DIR) = "bin" || -f $HOME/Downloads/crackle.zip ]] && upgrade_crackle; + [[ -z "$(ls $SCRP_DIR/bin)" && $(basename $SCRP_DIR) != "bin" ]] && err "submodule missing"; bashrc=$(grep crackle "$HOME"/.bashrc); profile=$(grep crackle "$HOME"/.profile);