Skip to content

Commit

Permalink
use ruby builtin to replace characters
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Sep 18, 2014
1 parent 7359c9d commit 217ecb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/bootloader/backup_mbr.rb
Expand Up @@ -12,7 +12,7 @@ class << self
# Backup is stored in /var/lib/YaST2/backup_boot_sectors, in logs
# directory and if it is MBR of primary disk, then also in /boot/backup_mbr
def backup_device(device)
device_file = Yast::Builtins.mergestring(Yast::Builtins.splitstring(device, "/"), "_")
device_file = device.tr("/", "_")
device_file_path = Yast::Ops.add(
"/var/lib/YaST2/backup_boot_sectors/",
device_file
Expand Down

0 comments on commit 217ecb4

Please sign in to comment.