Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3366494
D4450.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
700 B
Referenced Files
None
Subscribers
None
D4450.diff
View Options
diff --git a/services/scripts/test_service.sh b/services/scripts/test_service.sh
--- a/services/scripts/test_service.sh
+++ b/services/scripts/test_service.sh
@@ -2,8 +2,8 @@
set -e
-SERVICES=`./scripts/list_services.sh`
-SERVICE=`echo "$SERVICES" | grep $1` || echo "No such service: $1"
+SERVICES=$(./scripts/list_services.sh)
+SERVICE=$(grep "$1" <<< echo "$SERVICES") || echo "No such service: $1"
if [ "$SERVICE" != "$1" ]; then
echo "Expected one of these:"
@@ -15,5 +15,5 @@
echo "${SERVICE} service will be tested"
-docker-compose build ${SERVICE}-server
-docker-compose run ${SERVICE}-server
+docker-compose build "${SERVICE}"-server
+docker-compose run "${SERVICE}"-server
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 11:44 AM (20 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2584450
Default Alt Text
D4450.diff (700 B)
Attached To
Mode
D4450: [services] Clean up `test_service.sh`
Attached
Detach File
Event Timeline
Log In to Comment