Add license and copyright to 9b3fd2b5
[claws.git] / tools / textviewer.sh
old mode 100644 (file)
new mode 100755 (executable)
index 844e8eb..38c8894
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
 # textviewer.sh
 # Copyright 2003 Luke Plant <L.Plant.98@cantab.net>
@@ -6,7 +6,7 @@
 
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
+# as published by the Free Software Foundation; either version 3
 # of the License, or (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
@@ -133,7 +133,7 @@ case "$FNAME" in
        *.xls)  TYPE=EXCEL      ;;
 esac
 
-if [ "$TYPE" == "" ]   
+if [ "$TYPE" = "" ]
 then
        case $FILETYPE in 
                *"HTML"*)       TYPE=HTML ;;