diff --git a/distribution/ubuntu/install.sh b/distribution/ubuntu/install.sh index 44fa940..1dccbbc 100644 --- a/distribution/ubuntu/install.sh +++ b/distribution/ubuntu/install.sh @@ -119,7 +119,7 @@ extra_init() { # TODO: Install jellyfin-media-player # Install android-studio - sudo snap install android-studio --classic + sudo snap install android-studio --classic >/dev/null 2>&1 # TODO: Install zen browser diff --git a/gnome.sh b/gnome.sh index 065d302..e3f6b4c 100644 --- a/gnome.sh +++ b/gnome.sh @@ -68,7 +68,10 @@ configure_dash2dock_settings() { configure_wallpapers_settings() { if ! [ -d "/home/${USERNAME}/Images/Wallpapers" ]; then - git clone --depth 1 https://github.com/vhaudiquet/wallpapers "/home/${USERNAME}/Images/Wallpapers" + git clone --depth 1 https://github.com/vhaudiquet/wallpapers "/home/${USERNAME}/Images/Wallpapers" >/dev/null 2>&1 + if [ $? -ne 0 ]; then + echo -e "${BRed}Could not download wallpapers. Skipping.${NC}" + fi fi ${DBUS_LAUNCH} dconf write /org/gnome/shell/extensions/azwallpaper/slideshow-directory "'/home/${USERNAME}/Images/Wallpapers'" diff --git a/mymachine.sh b/mymachine.sh index d99f641..2051463 100755 --- a/mymachine.sh +++ b/mymachine.sh @@ -153,8 +153,12 @@ source "${script_dir}/gnome.sh" # Create gnome/gdm user info file if ! [ -z "${USER_PICTURE_URL}" ]; then echo "Downloading user profile picture..." - curl -L -o "/var/lib/AccountsService/icons/${USERNAME}" "${USER_PICTURE_URL}" - echo -e "[User]\nSession=\nIcon=/var/lib/AccountsService/icons/${USERNAME}\nSystemAccount=false\n" > /var/lib/AccountsService/users/${USERNAME} + curl -L -o "/var/lib/AccountsService/icons/${USERNAME}" "${USER_PICTURE_URL}" >/dev/null 2>&1 + if [ $? -ne 0 ]; then + echo -e "${BRed}Could not download user profile picture. Skipping.${NC}" + else + echo -e "[User]\nSession=\nIcon=/var/lib/AccountsService/icons/${USERNAME}\nSystemAccount=false\n" > /var/lib/AccountsService/users/${USERNAME} + fi fi # Install VSCode extensions