1 Answer
- Newest
- Most votes
- Most comments
0
The problematic line is this one:
(ls -l /tmp/ | grep "$stagingDir" | cut -d' ' -f 3,4 | grep -E -q "^(\s*)root\s*root\s*$") || { echo The 'staging directory is not currently owned by the root account. Exiting.'; exit 1; }
The cut command is cutting the user and group apart in two different field when the delimiter becomes a single space, breaking the following grep command.
answered 2 years ago
Relevant content
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago
- Why did my CloudWatch canary fail with the error "Node is either not visible or not an HTMLElement"?AWS OFFICIALUpdated 6 months ago