mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
fix double quotes around lxc exec
This commit is contained in:
parent
f09c0a9f8e
commit
529fb591de
3 changed files with 4 additions and 4 deletions
|
@ -91,7 +91,7 @@ LXC_EXEC () {
|
|||
start_timer
|
||||
|
||||
# Execute the command given in argument in the container and log its results.
|
||||
lxc exec $LXC_NAME --env PACKAGE_CHECK_EXEC=1 -t -- $cmd | tee -a "$complete_log" $current_test_log
|
||||
lxc exec $LXC_NAME --env PACKAGE_CHECK_EXEC=1 -t -- /bin/bash -c "$cmd" | tee -a "$complete_log" $current_test_log
|
||||
|
||||
# Store the return code of the command
|
||||
local returncode=${PIPESTATUS[0]}
|
||||
|
|
|
@ -80,8 +80,8 @@ _INSTALL_APP () {
|
|||
done
|
||||
|
||||
# Install the application in a LXC container
|
||||
log_info "Running: yunohost app install --force /app_folder -a $install_args"
|
||||
_RUN_YUNOHOST_CMD "app install --force /app_folder -a $install_args"
|
||||
log_info "Running: yunohost app install --force /app_folder -a \"$install_args\""
|
||||
_RUN_YUNOHOST_CMD "app install --force /app_folder -a \"$install_args\""
|
||||
|
||||
local ret=$?
|
||||
[ $ret -eq 0 ] && log_debug "Installation successful." || log_error "Installation failed."
|
||||
|
|
|
@ -78,7 +78,7 @@ parse_check_process() {
|
|||
# Looking like domain=foo.com&path=/bar&password=stuff
|
||||
# "Standard" arguments like domain/path will later be overwritten
|
||||
# during tests
|
||||
local install_args=$( extract_check_process_section "^; Manifest" "^; " $test_serie_rawconf | awk '{print $1}' | tr -d '"' | tr '\n' '&')
|
||||
local install_args=$( extract_check_process_section "^; Manifest" "^; " $test_serie_rawconf | tr '\n' '&')
|
||||
local preinstall_template=$(extract_check_process_section "^; pre-install" "^; " $test_serie_rawconf)
|
||||
local action_infos=$( extract_check_process_section "^; Actions" "^; " $test_serie_rawconf)
|
||||
local configpanel_infos=$( extract_check_process_section "^; Config_panel" "^; " $test_serie_rawconf)
|
||||
|
|
Loading…
Add table
Reference in a new issue