diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-03-21 20:17:36 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-03-21 20:17:36 -0300 |
commit | 9c4f19b5e3f590002c19758cded5cb6ed691a8fd (patch) | |
tree | f9c18f9fc7cbab137e0598a14abee9d2ffb76b70 /is_built | |
parent | 28bf2e7374b2c9fa4fb66920a31152d20dc95285 (diff) |
MIPS port helpful scripts
Diffstat (limited to 'is_built')
-rwxr-xr-x | is_built | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/is_built b/is_built new file mode 100755 index 0000000..9dc5d1c --- /dev/null +++ b/is_built @@ -0,0 +1,7 @@ +#!/bin/bash +# Detect is a package is installed or in a database + +pacman -Qqi $1 >/dev/null 2>&1 || \ +pacman -Sqi $1 >/dev/null 2>&1 + +exit $? |