update: Allow passing full filenames

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-08-10 14:25:15 +05:30
parent 63a6d86783
commit 0ea4788a1e
No known key found for this signature in database
GPG key ID: C2E74282C2133D62

View file

@ -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}"