From 0ea4788a1ef7b87bab1771e0a513c485de632072 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 10 Aug 2019 14:25:15 +0530 Subject: [PATCH] update: Allow passing full filenames Signed-off-by: Harsh Shandilya --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index ff2226e..5f04901 100755 --- a/update.sh +++ b/update.sh @@ -13,7 +13,7 @@ declare -a timers=('release-watcher-recent') # Now loop through each service and install it for service in "${services[@]}"; do - if [ "${1}" ] && [ "${service}" != "${1}" ]; then + if [ "${1}" ] && [[ "${service}" != "${1}" && "${service}.service" != "${1}" ]]; then continue fi prettyPrint "Installing ${service}" @@ -28,7 +28,7 @@ for service in "${services[@]}"; do done for timer in "${timers[@]}"; do - if [ "${1}" ] && [ "${timer}" != "${1}" ]; then + if [ "${1}" ] && [[ "${timer}" != "${1}" && "${timer}.timer" != "${1}" ]]; then continue fi prettyPrint "Installing ${timer}"