Commit 75945b5f authored by Tails developers's avatar Tails developers
Browse files

Stricter grep pattern (defensive programming).

Well, this script shall be converted to "set -e" at some point, too.
parent 57592f54
......@@ -47,7 +47,7 @@ fi
DEVICE=$(udevadm info --query path --path "${DEV_PATH}")
DEV_TYPE=$(udevadm info --query property --path "${DEV_PATH}" | grep ID_TYPE | awk -F "=" '{ print $2 }')
DEV_TYPE=$(udevadm info --query property --path "${DEV_PATH}" | grep -w '^ID_TYPE' | awk -F "=" '{ print $2 }')
# Let's be sure the CDRom can be ejected by pressing the button
if [ "$DEV_TYPE" = "cd" ]; then
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment