This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
removeDockerImages () { | |
docker rmi $(docker images | grep "^<none>" | awk '{print $3}') | |
} | |
containersToRemove=$(removeDockerImages 2>&1 | grep "image is being used by stopped container" | sed 's/.*image is being used by stopped container//g') | |
if [[ ${#containersToRemove} > 0 ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LOG_FILE=$HOME/.kodi/temp/kodi.log | |
rm $LOG_FILE 2> /dev/null | |
/usr/lib/kodi/kodi.bin --standalone & | |
while [[ ! -f $LOG_FILE ]] ; do | |
sleep 1s |