aboutsummaryrefslogtreecommitdiff
path: root/provision
diff options
context:
space:
mode:
Diffstat (limited to 'provision')
-rwxr-xr-xprovision9
1 files changed, 7 insertions, 2 deletions
diff --git a/provision b/provision
index e99d633..da1eaab 100755
--- a/provision
+++ b/provision
@@ -18,8 +18,13 @@ else
privilege="sudo"
else
if command -v pacman &> /dev/null; then
- command_name="pacman"
- install_command="-Sy"
+ if [[ "$1" == "flatpak" ]]; then
+ command_name="flatpak"
+ install_command="install"
+ else
+ command_name="pacman"
+ install_command="-Sy"
+ fi
privilege="sudo"
else
if command -v apt &> /dev/null; then