Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Delta_checker_1
https://rextester.com/LXZC64604 #!/bin/bash set +x ssh_exec="ssh -o StrictHostKeyChecking=no -i $SSH_KEY $SSH_USER@35.246.86.209" path="/var/appvol/ortp/file_extracts/app-data-extracts" api_url="https://jsonplaceholder.typicode.com/todos/1" if [[ "$($ssh_exec cat $path/delta/file.txt)" == "OK" ]]; then echo "File in "$path/delta" exists"; else echo "File in "$path/delta" doesn't exist" && curl $api_url && exit 1 fi
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
jhbl
learning bash 101
Checking set -e behavior in functions
Array
Test1
Find ERROR
lucky numbers
test
aaa
Example
Please log in to post a comment.