Afficher l'aide quand appellé sans paramètres.

This commit is contained in:
Georges Dupéron 2010-09-24 22:56:51 +02:00
parent d4fc00f0da
commit 30339551b7
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
if [ "$1" == "--help" -o "$1" == "-h" ]; then
if [ -z "$1" -o "$1" == "--help" -o "$1" == "-h" ]; then
cat <<EOF
Affiche les fichiers qui SONT des doublons, sous forme d'un script
permettant leur suppression.

View File

@ -1,6 +1,6 @@
#!/bin/bash
if [ "$1" == "--help" -o "$1" == "-h" ]; then
if [ -z "$1" -o "$1" == "--help" -o "$1" == "-h" ]; then
cat <<EOF
Affiche les fichiers qui NE SONT PAS des doublons.
Pour afficher les doublons, utilisez remdoubles.