welcoMattic / kymsu

Keep Your macOs Stuff Updated (KYMSU)
https://welcomattic.github.io/kymsu
MIT License
129 stars 31 forks source link

Cleanup does not appear to work #17

Closed DavidBoyd1 closed 5 years ago

DavidBoyd1 commented 6 years ago

When running kymsu cleanup - it does not appear to work - that is nothing is removed after doing a update on brew.

have to go into plugins.d and run ./homebrew.sh cleanup for it to work.

welcoMattic commented 6 years ago

If @mageekguy can take a look at this problem, it would be nice ;)

welcoMattic commented 6 years ago

Ping @mageekguy could you help us on this issue? I tried to fix it without success yesterday :/

Bruno21 commented 6 years ago

Until the bug is fixed, I'm using this script instead kymsu.sh cleanup parameter work fine.

#!/bin/bash

SCRIPTS_DIR=/Users/bruno/.kymsu/plugins.d

for script in $(ls $SCRIPTS_DIR); do
    if [ -x "$SCRIPTS_DIR/$script" ]; then
         $SCRIPTS_DIR/$script $@
    fi
done
welcoMattic commented 6 years ago

Thanks @Bruno21, may be I'll use your script, more human readable ;)