return 1
fi
- if ! compgen -G "${isu_pkg_dir}/${ISU_SERVICES_DIR}/*.service"; then
- echo "There are no $INSTANCE services in $isu_pkg_dir"
- return 0
- fi
-
- for srv_path in "${isu_pkg_dir}/${ISU_SERVICES_DIR}"/*.service; do
+ for srv_path in $(compgen -G "${isu_pkg_dir}/${ISU_SERVICES_DIR}"/*.service); do
if ! test -r "$srv_path"; then
echo "Service file $srv_path not readable. Skipping"
install_units "$srv_path" "$isu_pkg_name"
done
- for unit_path in "${isu_pkg_dir}/${ISU_SERVICES_DIR}"/*.mount; do
- if ! test -r "$unit_path"; then
+ for unit_path in $(compgen -G "${isu_pkg_dir}/${ISU_SERVICES_DIR}"/*.mount); do
+
+ if ! test -r "$unit_path"; then
echo "Unit file $unit_path not readable. Skipping"
continue
fi