Bump to 1.14.1
[platform/upstream/augeas.git] / tests / test-put-symlink.sh
index 6996b23..b805458 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/bin/sh
 
 # Test that we correctly preserve symlinks when saving a file
 
@@ -41,3 +41,8 @@ if [ "x$LINK" != "x../other/hosts" ] ; then
     echo "/etc/hosts does not link to ../other/hosts"
     exit 1
 fi
+
+if ! grep myhost $REAL_HOSTS >/dev/null; then
+    echo "/other/hosts does not contain the modification"
+    exit 1
+fi