rootcopy custom

This commit is contained in:
Pietro committed 2020-01-19 18:15:33 +01:00
1 parent f02e73e522
commit a3bfaccea1
9 files changed
+489

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
#!/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 "$@"