Skip to content
Snippets Groups Projects
Commit 5a4e8871 authored by Steven Barth's avatar Steven Barth
Browse files

Prevent unwanted shell expansion

SVN-Revision: 12568
parent 10eaf08d
No related branches found
No related tags found
No related merge requests found
......@@ -9,10 +9,10 @@ while [ $i -le 10 ]; do
for blk in `find host* -type d 2>/dev/null`; do
[ -d /sys/${DEVPATH}/${blk}/block/ ] && {
cd
for disc in `find /sys/${DEVPATH}/${blk}/block -name sd*`; do
for disc in `find /sys/${DEVPATH}/${blk}/block -name "sd*"`; do
sleep 2
cd $disc
for node in `find . -name sd* | cut -d "/" -f2`; do
for node in `find . -name "sd*" | cut -d "/" -f2`; do
echo "mounting /dev/${node} on /mnt/usbdrive"
mkdir -p /mnt/usbdrive
mount /dev/${node} /mnt/usbdrive
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment