Fixing bash syntax errors in the generations-dir builder.

svn path=/nixos/trunk/; revision=18342
This commit is contained in:
Lluís Batlle i Rossell 2009-11-13 19:30:39 +00:00
parent 5cb52cc7cb
commit e164ea4df8

View File

@ -77,19 +77,19 @@ addEntry() {
cp "$(readlink -f "$path/init")" /boot/nixos-init
mkdir -p /boot/default
if [ -e /boot/default/system ];
if [ -e /boot/default/system ]; then
rm /boot/default/system
fi
ln -sf $(readlink -f $path) /boot/default/system
if [ -e /boot/default/init ];
if [ -e /boot/default/init ]; then
rm /boot/default/init
fi
ln -sf $(readlink -f $path/init) /boot/default/init
if [ -e /boot/default/initrd ];
if [ -e /boot/default/initrd ]; then
rm /boot/default/initrd
fi
ln -sf $initrd /boot/default/initrd
if [ -e /boot/default/kernel ];
if [ -e /boot/default/kernel ]; then
rm /boot/default/kernel
fi
ln -sf $kernel /boot/default/kernel