We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd75b84 + f30b4e6 commit 4e4c7f8Copy full SHA for 4e4c7f8
1 file changed
src/common.sh
@@ -153,7 +153,9 @@ function detach_all_loopback(){
153
# Cleans up mounted loopback devices from the image name
154
# NOTE: it might need a better way to grep for the image name, its might clash with other builds
155
for img in $(losetup | grep $1 | awk '{ print $1 }' ); do
156
- losetup -d $img
+ if [[ -f $img ]]; then
157
+ losetup -d $img
158
+ fi
159
done
160
}
161
0 commit comments