You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
316 B
29 lines
316 B
#!/bin/bash
|
|
|
|
if [ "$1" = "rm" ]; then
|
|
shift
|
|
rmsbdir "$@"
|
|
exit $?
|
|
fi
|
|
|
|
if [ "$1" = "rmdir" ]; then
|
|
shift
|
|
rmsbdir "$@"
|
|
exit $?
|
|
fi
|
|
|
|
if [ "$1" = "conv" ]; then
|
|
shift
|
|
fi
|
|
|
|
if [ ! -r "$1" ]; then
|
|
echo File not found "$1"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -d "$1" ]; then
|
|
dir2sb "$@"
|
|
exit $?
|
|
fi
|
|
|
|
sb2dir "$@"
|
|
|