Skip to content

Commit

Permalink
more infinite loops yay
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuseteam committed Mar 23, 2022
1 parent 2345708 commit c716564
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/triplet
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ download_crackle() {
wget -q https://github.com/tuxecure/crackle/releases/latest/download/crackle.zip -O $HOME/Downloads/crackle.zip
}

upgrade_crackle() {
[[ ! -f $HOME/Downloads/crackle.zip ]] && download_crackle;
unzip_crackle() {
say "unpacking..."
unzip -q $HOME/Downloads/crackle.zip -d $HOME/crackle
}

upgrade_crackle() {
[[ ! -f $HOME/Downloads/crackle.zip ]] && download_crackle;
[[ ! -d $HOME/crackle ]] && unzip_crackle;
transistion_crackle
[[ $(basename $SCRP_DIR) = "bin" ]] || $HOME/crackle/crackle setup
say "cleaning up..."
Expand All @@ -40,7 +44,7 @@ transistion_crackle() {
[[ -d "$APTCACHE/lists" ]] && rm -r "$APTCACHE/lists";
[[ -f "$APTCONFIG/crackle_completion" ]] && rm "$APTCONFIG/crackle_completion";
[[ -d "$PKG_PATH/bin/scripts" ]] && rm -r "$PKG_PATH/bin/scripts";
sed -i '/crackle_conmpletion/d' $HOME/.bash_completion
[ -f $HOME/.bash_completion ] && sed -i '/crackle_conmpletion/d' $HOME/.bash_completion
}

# check is a command exists
Expand Down

0 comments on commit c716564

Please sign in to comment.