Skip to content

Commit b214056

Browse files
committed
[update] : Added instaleldpkg function
1 parent 2b49725 commit b214056

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

channels/share/airootfs.any/root/customize_airootfs.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ function remove () {
8787
}
8888

8989

90+
function installedpkg () {
91+
if pacman -Qq "${1}" 1>/dev/null 2>/dev/null; then
92+
return 0
93+
else
94+
return 1
95+
fi
96+
}
97+
9098
# Enable and generate languages.
9199
sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
92100
if [[ ! "${localegen}" = "en_US\\.UTF-8\\" ]]; then

0 commit comments

Comments
 (0)