Skip to content

Commit

Permalink
Added new APT feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Legonois committed Oct 24, 2024
1 parent a86139f commit 47cf50c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/add-apt-repository/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Add 'add-apt-repository' command",
"id": "add-apt-repository",
"version": "1.0.0",
"description": "Installs the 'add-apt-repository' command with apt.",
"options": {
"version": {
"default": "latest",
"description": "Select the version to install.",
"proposals": [
"latest"
],
"type": "string"
}
}
}
10 changes: 10 additions & 0 deletions src/add-apt-repository/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# TODO: Add a check to see if the package is already installed
# TODO: Add a check to see if apt-get is installed

sudo apt update
sudo apt install software-properties-common

# if sudo apt-get --simulate install packageThatDoesntExist
# then echo "we're good"
# else echo "oops, something happened"
# fi

0 comments on commit 47cf50c

Please sign in to comment.