Only push ENABLED extensions

This commit is contained in:
Sage Vaillancourt 2024-06-30 10:52:41 -04:00
parent 62804ababa
commit ccf3caee81
1 changed files with 4 additions and 4 deletions

View File

@ -134,13 +134,13 @@ function push-extensions {
echo "gnome-extensions is not installed!"
return
fi
mv $HOME/.tmp/gnome-extension-list $HOME/.tmp/prev-gnome-extension-list &> /dev/null
gnome-extensions list > $HOME/.tmp/gnome-extension-list
mv $HOME/.tmp/gnome-extension-list "$HOME/.tmp/prev-gnome-extension-list" &> /dev/null
gnome-extensions list --enabled > "$HOME/.tmp/gnome-extension-list"
# If there is NO difference, skip scp
if [[ "$1" != "--force" ]] && diff $HOME/.tmp/gnome-extension-list $HOME/.tmp/prev-gnome-extension-list &> /dev/null; then
if [[ "$1" != "--force" ]] && diff "$HOME/.tmp/gnome-extension-list" "$HOME/.tmp/prev-gnome-extension-list" &> /dev/null; then
return
fi
scp -P 11275 $HOME/.tmp/gnome-extension-list 'sage@sagev.space:~/gnome-extension-list'
scp -P 11275 "$HOME/.tmp/gnome-extension-list" 'sage@sagev.space:~/gnome-extension-list'
}
function merge-hist {