diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-24 09:45:11 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:05 +0100 |
| commit | cc62ca76356dc851006e3fc980cc1dcc46ef9ca6 (patch) | |
| tree | e821a640df8121aaea6e02e814c6a82bc75bac46 /scripts/live-bottom/40install_driver_updates | |
| parent | 32e6d9c217846ec5f6d2da9b773a34c4d1970348 (diff) | |
| download | live-boot-cc62ca76356dc851006e3fc980cc1dcc46ef9ca6.tar.gz live-boot-cc62ca76356dc851006e3fc980cc1dcc46ef9ca6.zip | |
Consistently using curly brackets for variables.
Diffstat (limited to 'scripts/live-bottom/40install_driver_updates')
| -rwxr-xr-x | scripts/live-bottom/40install_driver_updates | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/live-bottom/40install_driver_updates b/scripts/live-bottom/40install_driver_updates index 762a084..584dcd0 100755 --- a/scripts/live-bottom/40install_driver_updates +++ b/scripts/live-bottom/40install_driver_updates @@ -33,18 +33,18 @@ log_begin_msg "Installing driver updates..." install_dir=/var/cache/driver-updates -mkdir "/root$install_dir" -cp -a /tmp/driver-updates/*.deb "/root$install_dir/" +mkdir "/root${install_dir}" +cp -a /tmp/driver-updates/*.deb "/root${install_dir}/" # We cannot leave packages in a bad state. So if the install fails, remove # it. This will get caught in live.log. -for deb in "/root$install_dir"/* +for deb in "/root${install_dir}"/* do - [ -f "$deb" ] || continue + [ -f "${deb}" ] || continue debbase="${deb##*/}" - if ! chroot /root dpkg -i "$install_dir/$debbase" + if ! chroot /root dpkg -i "${install_dir}/${debbase}" then chroot /root dpkg -P "${debbase%%_*}" fi |
