Skip to content

Commit e3c01fe

Browse files
committed
Fixed application export bu
1 parent d39ad43 commit e3c01fe

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

adc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ EOF
433433
function application_export {
434434
local APPLICATION_ID=$*
435435
if [[ $APPLICATION_ID =~ ^[0-9]+$ ]]; then
436-
controller_call /controller/ConfigObjectImportExportServlet?applicationId=97
436+
controller_call /controller/ConfigObjectImportExportServlet?applicationId=$APPLICATION_ID
437437
else
438438
COMMAND_RESULT=""
439439
error "This is not a number: '$APPLICATION_ID'"

commands/application/export.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
function application_export {
44
local APPLICATION_ID=$*
55
if [[ $APPLICATION_ID =~ ^[0-9]+$ ]]; then
6-
controller_call /controller/ConfigObjectImportExportServlet?applicationId=97
6+
controller_call /controller/ConfigObjectImportExportServlet?applicationId=$APPLICATION_ID
77
else
88
COMMAND_RESULT=""
99
error "This is not a number: '$APPLICATION_ID'"

helpers/apiCall.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
function apiCall {
3+
echo $*
4+
}

0 commit comments

Comments
 (0)