Skip to content

Commit

Permalink
clean crackle sudo links
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuseteam committed Apr 19, 2024
1 parent d2bf600 commit 8c20bde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crackle
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,12 @@ APT_CACHE="apt-cache -o Dir::Cache=$APTCACHE -o Dir::State=$APTSTATE -o Dir::Etc
for pkg in "${PKG[@]}"
do
[ -d $PKG_PATH/$pkg ] && say "removing $pkg";
[[ -d "$PKG_PATH/$pkg/sbin" || -d "$PKG_PATH/$pkg/usr/sbin" ]] && sbin="true";
[[ -d "$PKG_PATH/$pkg/sbin" || -d "$PKG_PATH/$pkg/usr/sbin" || -f "$PKG_PATH/$pkg/$pkg.sudo" ]] && sbin="true";
[ -d $PKG_PATH/$pkg ] && rm -r $PKG_PATH/$pkg;
[ "$sbin" = "true" ] && sudo_run "find $SUDO_BIN -xtype l -exec rm {} +";
[ "$sbin" = "true" ] && sudo_run "find $SUDO_CONFIG -xtype l -exec rm {} +";
[ "$sbin" = "true" ] && sudo -k;
[ "$sbin" = "true" ] && unset $sbin;
[ "$sbin" = "true" ] && sbin="";
[ -f ${PKG_PREFIX}/share/applications/crackle.${pkg}.desktop ] && rm ${PKG_PREFIX}/share/applications/crackle.${pkg}.desktop
done;
find "$PKG_PREFIX/bin" -xtype l -exec rm {} +;
Expand Down

0 comments on commit 8c20bde

Please sign in to comment.