Bug: Yikes! This deleted the current profile on a machine that hadn't
been started in awhile. :(
echo "(Disregarding unrelated profile $p)" >&2
continue
fi
echo "(Disregarding unrelated profile $p)" >&2
continue
fi
- if [[ "$p" == "$current" ]];then
+ pname=$(${pkgs.coreutils}/bin/basename "$p")
+ if [[ "$pname" == "$current" ]];then
echo "Keeeping current profile $p" >&2
continue
fi
echo "Keeeping current profile $p" >&2
continue
fi
echo "Keeeping active system/boot profile $p" >&2
continue
fi
echo "Keeeping active system/boot profile $p" >&2
continue
fi
- if [[ "''${active[$p]:-}" ]];then
+ if [[ "''${active[$pname]:-}" ]];then
echo "Keeeping active profile $p" >&2
continue
fi
echo "Keeeping active profile $p" >&2
continue
fi