Check if file exists

This commit is contained in:
Igor Pečovnik 2018-06-16 18:57:41 +00:00
parent 081426e8e3
commit f0b4ac9f2a

View File

@ -47,7 +47,7 @@ case "$1" in
echo -e "\n### [firstrun] Recreated SSH keys (entropy: ${entropy_before} ${entropy_after})" >>${Log}
# get rid of purple background color in newt apps whiptail, partimage, debconf ... Reverting to Debian look.
sed -e 's/magenta/blue/g' -i /etc/newt/palette
[[ -f /etc/newt/palette ]] && sed -e 's/magenta/blue/g' -i /etc/newt/palette
# desktop tweaks - enable show windows content on stronger boards
cpu_cores=$(grep -c '^processor' /proc/cpuinfo | sed 's/^0$/1/')