modification pour afficher l'aide même si certains outils requis sont absents

This commit is contained in:
Jephté Clain 2016-11-28 09:25:52 +04:00
parent 2425cbe0f8
commit 390233a4a2
3 changed files with 13 additions and 12 deletions

10
mocifs
View File

@ -26,11 +26,6 @@ OPTIONS
Spécifier les credentials à utiliser pour la connexion"
}
if ! progexists mount.cifs; then
[ -x /sbin/mount.cifs ] || die "Ce script nécessite cifs-utils. Sur debian, vous pouvez l'installer avec la commande
sudo apt-get install cifs-utils"
fi
action=auto
options=
username=
@ -46,6 +41,11 @@ parse_opts "${PRETTYOPTS[@]}" \
-c:,--credentials: credentials= \
@ args -- "$@" && set -- "${args[@]}" || die "$args"
if ! progexists mount.cifs; then
[ -x /sbin/mount.cifs ] || die "Ce script nécessite cifs-utils. Sur debian, vous pouvez l'installer avec la commande
sudo apt-get install cifs-utils"
fi
if is_root; then
sudo=
else

10
modav
View File

@ -40,11 +40,6 @@ OPTIONS
mountpoint username password"
}
if ! progexists mount.davfs; then
[ -x /usr/sbin/mount.davfs ] || die "Ce script nécessite davfs2. Sur debian, vous pouvez l'installer avec la commande
sudo apt-get install davfs2"
fi
action=auto
options=
username=
@ -60,6 +55,11 @@ parse_opts "${PRETTYOPTS[@]}" \
-c:,--credentials: credentials= \
@ args -- "$@" && set -- "${args[@]}" || die "$args"
if ! progexists mount.davfs; then
[ -x /usr/sbin/mount.davfs ] || die "Ce script nécessite davfs2. Sur debian, vous pouvez l'installer avec la commande
sudo apt-get install davfs2"
fi
if is_root; then
sudo=
else

5
mossh
View File

@ -29,8 +29,6 @@ OPTIONS
prioritaire par rapport à cette option."
}
progexists sshfs || die "Ce script nécessite sshfs"
action=auto
ssh=ssh
options=
@ -46,6 +44,9 @@ parse_opts "${PRETTYOPTS[@]}" \
-l:,-u:,--user: user= \
@ args -- "$@" && set -- "${args[@]}" || die "$args"
progexists sshfs || die "Ce script nécessite sshfs. Sur debian, vous pouvez l'installer avec la commande
sudo apt-get install sshfs"
if [ -n "$shared" ]; then
if is_root; then
options="${options:+"$options,"}allow_other"