Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use -x to test for executable.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 31 Jan 2013 11:02:23 +0000 (12:02 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 31 Jan 2013 11:02:32 +0000 (12:02 +0100)
tools/check_dist_archive

index 22c717b..ca1f75e 100755 (executable)
@@ -86,7 +86,7 @@ diffcmd() {
 
 colordiff=$(type -p colordiff)
 colorless() {
 
 colordiff=$(type -p colordiff)
 colorless() {
-    if [ -n "$colordiff" ]; then
+    if [ -x "$colordiff" ]; then
         "$colordiff" | less -R -F
     else
         less -F
         "$colordiff" | less -R -F
     else
         less -F