mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-30 19:19:53 +00:00
17 lines
317 B
Text
17 lines
317 B
Text
|
#!/bin/bash
|
||
|
# Description: Ubuntu Snaps
|
||
|
set -e
|
||
|
|
||
|
_recipe _apt
|
||
|
|
||
|
_apt snapd
|
||
|
|
||
|
function _snap {
|
||
|
local package=$1
|
||
|
if ! snap info $package | grep ^installed: >/dev/null; then
|
||
|
_run "[snap] Install $package" sudo snap install $@
|
||
|
else
|
||
|
echo "[snap] $package is already installed, skipping."
|
||
|
fi
|
||
|
}
|