pamac.sh 863 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# ===============================================================
#
# PACKAGE MANAGER: PAMAC
# Manjaro
#
# included by ../check_packages2install
#
# ---------------------------------------------------------------
# ah <axel.hahn@iml.unibe.ch>
# 2022-06-03  v1.0  ah  first version
12
# 2022-06-07  v1.1  ah  rename functions
13
14
15
16
# ===============================================================

# ---------------------------------------------------------------
# command to list of updates
17
function pamac.GetUpdates(){
18
19
20
21
22
    pamac checkupdates
}

# ---------------------------------------------------------------
# extract list of packages 2 install
23
# global  string  packagemanOut  output of update lister command
24
function pamac.getPackageList(){
25
26
27
28
     echo "$packagemanOut" | grep -- '->'
}

# ---------------------------------------------------------------