Skip to content

Commit

Permalink
don't remove crackle from the home directory if isn't installed yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuseteam committed Apr 16, 2022
1 parent 5d71d8b commit 5ceb915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crackle
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ 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" ] && {
[[ -d $HOME/crackle ]] && rm -r $HOME/crackle;
[[ $(basename $SCRP_DIR) = "bin" && -d $HOME/crackle ]] && rm -r $HOME/crackle;
[[ $(basename $SCRP_DIR) = "bin" || -f $HOME/Downloads/crackle.zip ]] && upgrade_crackle;
bashrc=$(grep crackle "$HOME"/.bashrc);
profile=$(grep crackle "$HOME"/.profile);
Expand Down

0 comments on commit 5ceb915

Please sign in to comment.