code cleanup
This commit is contained in:
parent
a7d262ff65
commit
e935f00506
2 changed files with 20 additions and 19 deletions
|
@ -8,3 +8,4 @@ cava
|
||||||
spicetify-cli
|
spicetify-cli
|
||||||
wireguard-tools
|
wireguard-tools
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
|
gnome-keyring
|
||||||
|
|
|
@ -121,28 +121,28 @@ install_snap_apps(){
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Read each line in the "snap_apps.lst" file
|
# Read each line in the "snap_apps.lst" file
|
||||||
while IFS= read -r line
|
while IFS= read -r line
|
||||||
do
|
do
|
||||||
# Skip empty lines and lines starting with '#'
|
# Skip empty lines and lines starting with '#'
|
||||||
if [ -z "$line" ] || [[ "$line" == \#* ]]; then
|
if [ -z "$line" ] || [[ "$line" == \#* ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install the snap package
|
# Install the snap package
|
||||||
|
|
||||||
echo -e "\033[0;32m[SNAP]\033[0m installing snap packages: $line"
|
echo -e "\033[0;32m[SNAP]\033[0m installing snap packages: $line"
|
||||||
sudo snap install "$line"
|
sudo snap install "$line"
|
||||||
|
|
||||||
# Check if the installation was successful
|
# Check if the installation was successful
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "$line installed successfully!"
|
echo "$line installed successfully!"
|
||||||
else
|
else
|
||||||
echo "Failed to install $line"
|
echo "Failed to install $line"
|
||||||
fi
|
fi
|
||||||
done < "$SNAP_APPS_FILE"
|
done < "$SNAP_APPS_FILE"
|
||||||
|
|
||||||
echo "All snap packages have been processed."
|
echo "All snap packages have been processed."
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue