Skip to content

Commit

Permalink
use shell glob instead of ls and backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Mar 31, 2016
1 parent 56b089a commit 5162436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fai-mount-disk
Expand Up @@ -24,7 +24,7 @@ mount_local_disks() {
fstabcount=0
[ "$1" = "rw" ] && mountoption=$1

for disk in `ls /dev/disk/by-uuid/*`; do
for disk in /dev/disk/by-uuid/*; do
type=$(blkid -sTYPE $disk)
[[ "$type" =~ "swap" ]] && continue
dev=$(readlink -e $disk)
Expand Down

0 comments on commit 5162436

Please sign in to comment.