diff --git a/.bashrc b/.bashrc index 6a3faed3146919eee18ceb7448e7c8f9db4daa57..e6fe812097c5fc2bfaa5b5325a84d91fab9f776a 100644 --- a/.bashrc +++ b/.bashrc @@ -116,7 +116,6 @@ alias green="printf '\e[1;92m%s\e[0m\n'" alias hcl2json='json2hcl -reverse' alias hostlocal='docker run --rm --privileged --net=host docker.io/gliderlabs/hostlocal' alias jjb='jenkins-jobs' -alias kodi_scan="docker --host=ssh://kodi.shore.co.il exec poquita-poquita-1 kodi_scan" alias l='ls -F' alias la='ls -AF' alias lh='ls -lhAS' @@ -230,6 +229,13 @@ gen_csr () { openssl req -new -newkey rsa:4096 -nodes -out "$name.csr" -keyout "$name.key" } +kodi_scan () { + # shellcheck disable=SC1083 + ssh kodi.shore.co.il curl --silent --fail --show-error --json \'{\"jsonrpc\": \"2.0\", \"id\": \"transmission\", \"method\": \"VideoLibrary.Scan\"}\' http://127.0.0.1:8080/jsonrpc; echo + # shellcheck disable=SC1083 + ssh kodi.shore.co.il curl --silent --fail --show-error --json \'{\"jsonrpc\": \"2.0\", \"id\": \"transmission\", \"method\": \"AudioLibrary.Scan\"}\' http://127.0.0.1:8080/jsonrpc; echo +} + match_ssl_pair () { if [ "$#" -ne 2 ] then