Blame tests/p_file/03_file_mime_symlink.sh

Ranjib Dey e0701f
#!/bin/bash
Christoph Galuschka 37e507
# Author:	???
Christoph Galuschka 37e507
#	  Christoph Galuschka <christoph.galuschka@chello.at>
Ranjib Dey e0701f
Ranjib Dey e0701f
t_Log "Running $0 - checking if file can recognize symlink mime file type "
Ranjib Dey e0701f
Christoph Galuschka 37e507
if (t_GetPkgRel basesystem | grep -q el5)
Christoph Galuschka 37e507
  then
Christoph Galuschka 37e507
  file -i /etc/grub.conf | grep -q 'x-not-regular-file'
Christoph Galuschka 37e507
  ret_val=$?
Christoph Galuschka 37e507
else
Christoph Galuschka 37e507
  file -i /etc/grub.conf | grep -q 'application/x-symlink'
Christoph Galuschka 37e507
  ret_val=$?
Christoph Galuschka 37e507
fi
Ranjib Dey e0701f
Christoph Galuschka 37e507
t_CheckExitStatus $ret_val