View | Details | Raw Unified | Return to bug 196435 | Differences between
and this patch

Collapse All | Expand All

(-)Keywords/sample.ucl (-2 / +2 lines)
Lines 21-27 post-install: <<EOD Link Here
21
  *) sample_file="%D/%@" ;;
21
  *) sample_file="%D/%@" ;;
22
  esac
22
  esac
23
  target_file="${sample_file%.sample}"
23
  target_file="${sample_file%.sample}"
24
  if ! [ -f "${target_file}" ]; then
24
  if ! [ -e "${target_file}" ]; then
25
    /bin/cp -p "${sample_file}" "${target_file}" && \
25
    /bin/cp -p "${sample_file}" "${target_file}" && \
26
      /bin/chmod u+w "${target_file}"
26
      /bin/chmod u+w "${target_file}"
27
  fi
27
  fi
Lines 32-38 pre-deinstall: <<EOD Link Here
32
  *) sample_file="%D/%@" ;;
32
  *) sample_file="%D/%@" ;;
33
  esac
33
  esac
34
  target_file="${sample_file%.sample}"
34
  target_file="${sample_file%.sample}"
35
  if cmp -s "${target_file}" "${sample_file}"; then
35
  if cmp -hs "${target_file}" "${sample_file}"; then
36
    rm -f "${target_file}"
36
    rm -f "${target_file}"
37
  else
37
  else
38
    echo "You may need to manually remove ${target_file} if it's no longer needed."
38
    echo "You may need to manually remove ${target_file} if it's no longer needed."

Return to bug 196435