♻️ refactor(bin): vscodium extension installer now recieves a file as a parameter

This commit is contained in:
Sergio Laín 2024-08-12 12:45:55 +02:00
parent afd7ca18e1
commit 4481668afa
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150

View file

@ -1,5 +1,9 @@
#!/bin/bash
cat ~/.config/VSCodium/User/extensions.txt | while read extension || [[ -n $extension ]]; do
vscodium --install-extension "$extension" --force
if [ -z "$1" ]; then
exit 1
fi
cat "$1" | while read extension || [[ -n $extension ]]; do
vscodium --install-extension "$extension" --force
done