From b85795886d91f9a8d963a5df12f392080aa52996 Mon Sep 17 00:00:00 2001 From: jschx Date: Sat, 6 May 2017 00:38:03 -0500 Subject: [PATCH] Fix Pkgfile. --- Pkgfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Pkgfile b/Pkgfile index be68440..bb8f8c9 100644 --- a/Pkgfile +++ b/Pkgfile @@ -1,6 +1,6 @@ # Description: Tiny system info for CRUX. # URL: https://github.com/jschx/ufetch -# Packager: Joe Schillinger, js1 at openmailbox dot org +# Packager: Joe Schillinger, me at schil dot li # Maintainer: 6c37 Team, https://github.com/6c37/crux-ports/issues # Depends on: @@ -10,14 +10,15 @@ release=1 source=() build() { - cd $PKGMK_SOURCE_DIR + cd "${PKGMK_SOURCE_DIR}" - if cd $name; then - git fetch -q; git reset --hard origin/master + if cd "${name}"; then + git fetch -q + git reset --hard origin/master else - git clone https://github.com/jschx/ufetch $name - cd $name + git clone https://github.com/jschx/ufetch "${name}" + cd "${name}" fi - install -Dm755 ufetch $PKG/usr/bin/ufetch + install -Dm755 ufetch-crux "${PKG}/usr/bin/ufetch" }