diff options
-rwxr-xr-x | src/usb.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -37,7 +37,7 @@ choose_usb() | |||
37 | die "no usb device found" | 37 | die "no usb device found" |
38 | elif [ $# = 1 ]; then | 38 | elif [ $# = 1 ]; then |
39 | confirm_usb "$1" || die impossible | 39 | confirm_usb "$1" || die impossible |
40 | USB="$1" | 40 | USB=$(readlink -f "$1") |
41 | else | 41 | else |
42 | die "multiple USB devices connected and choice between them is unimplemented. ($*)" | 42 | die "multiple USB devices connected and choice between them is unimplemented. ($*)" |
43 | fi | 43 | fi |
@@ -49,5 +49,5 @@ choose_cdrom() | |||
49 | } | 49 | } |
50 | 50 | ||
51 | choose_usb | 51 | choose_usb |
52 | echo USB=$USB | 52 | echo $USB |
53 | 53 | ||