Commit fecab6e4 authored by Jonathon's avatar Jonathon

Fix unbound variable check

parent 12fcfc7a
......@@ -32,7 +32,7 @@ sha256sums=('f6c7fe6bbcc26a79b1e455a42a8dc906bee4edd1b386b4f76178f006f4d7f822'
prepare() {
if [ "${_gitcommit}" != "" ]; then
if [ -z $_gitcommit ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -53,7 +53,7 @@ build() {
cpucount=$(grep -c processor /proc/cpuinfo 2>/dev/null)
jc=$((${cpucount:-1}))
if [ "${_gitcommit}" != "" ]; then
if [ -z $_gitcommit ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -107,7 +107,7 @@ package_octopi() {
'pacmanlogviewer: to view pacman log files')
replaces=('octopi-qt5')
if [ "${_gitcommit}" != "" ]; then
if [ -z $_gitcommit ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -128,7 +128,7 @@ package_octopi-pacmanhelper() {
pkgdesc="Pacman helper for Octopi notifier"
depends=('qt5-base')
if [ "${_gitcommit}" != "" ]; then
if [ -z $_gitcommit ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -158,7 +158,7 @@ package_octopi-cachecleaner() {
pkgdesc="Cachecleaner for Octopi"
depends=('qt5-base')
if [ "${_gitcommit}" != "" ]; then
if [ -z $_gitcommit ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -177,7 +177,7 @@ package_octopi-notifier-qt5() {
provides=("octopi-notifier=${pkgver}")
replaces=('octopi-qt5-notifier' 'octopi-notifier-qt4')
if [ "${_gitcommit}" != "" ]; then
if [ -z $_gitcommit ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......@@ -195,7 +195,7 @@ package_octopi-notifier-frameworks() {
conflicts=('octopi-notifier')
provides=("octopi-notifier=${pkgver}")
if [ "${_gitcommit}" != "" ]; then
if [ -z $_gitcommit ]; then
cd "${srcdir}/${pkgbase}-${_gitcommit}"
else
cd "${srcdir}/${pkgbase}-${pkgver}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment