summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeppia <seppia@seppio.fish>2018-11-29 13:51:49 +0100
committerSeppia <seppia@seppio.fish>2018-11-29 13:51:49 +0100
commit357131f2b94158bc8f95fd7a58a82e030d8a90a4 (patch)
tree5bc91e960f5947de4115231bdc996022bb019e71
parentf201fd4e47cf8614de144a81abf57728771fb91e (diff)
downloadrepofish-357131f2b94158bc8f95fd7a58a82e030d8a90a4.tar.gz
repofish-357131f2b94158bc8f95fd7a58a82e030d8a90a4.tar.bz2
repofish-357131f2b94158bc8f95fd7a58a82e030d8a90a4.zip
Find package directory bug fix
Fixes a bug matching only given pattern in package name instead of exact pattern.
-rwxr-xr-xrepofish8
1 files changed, 4 insertions, 4 deletions
diff --git a/repofish b/repofish
index 0a2bfec..e601f03 100755
--- a/repofish
+++ b/repofish
@@ -82,7 +82,7 @@ build_packages() {
declare -a pkg=("${!1}")
echo -e '\033[1;34m:: \033[1;37mBuilding following packages: '"${pkg[@]}"'\033[m'
for i in "${pkg[@]}"; do
- cd $(find ${SRC_PATH}/* -type d -prune -iname "*$i")
+ cd $(find ${SRC_PATH}/* -type d -prune -iname "$i")
makepkg -Cs
done
else
@@ -100,7 +100,7 @@ upgrade_packages() {
declare -a pkg=("${!1}")
echo -e '\033[1;34m:: \033[1;37mUpgrading following packages: '"${pkg[@]}"'\033[m'
for i in "${pkg[@]}"; do
- cd $(find ${SRC_PATH}/* -type d -prune -iname "*$i")
+ cd $(find ${SRC_PATH}/* -type d -prune -iname "$i")
git fetch
git diff origin/master
git merge
@@ -124,7 +124,7 @@ update_packages() {
declare -a pkg=("${!1}")
echo -e '\033[1;34m:: \033[1;37mUpdating following packages: '"${pkg[@]}"'\033[m'
for i in "${pkg[@]}"; do
- cd $(find ${SRC_PATH}/* -type d -prune -iname "*$i")
+ cd $(find ${SRC_PATH}/* -type d -prune -iname "$i")
git fetch
git diff origin/master
git merge
@@ -146,7 +146,7 @@ install_packages() {
echo -e '\033[1;34m:: \033[1;37mInstalling following packages: '"${pkg[@]}"'\033[m'
for i in "${pkg[@]}"; do
if [ -d "${SRC_PATH}/$i" ]; then
- cd $(find ${SRC_PATH}/* -type d -prune -iname "*$i")
+ cd $(find ${SRC_PATH}/* -type d -prune -iname "$i")
makepkg -Csi
else
echo -e '\033[1;33mWARNING:\033[m Package '"$i"' not found.'