summarylogtreecommitdiffstats
path: root/minecraftd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'minecraftd.sh')
-rwxr-xr-xminecraftd.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/minecraftd.sh b/minecraftd.sh
index 3563ce7f944a..0dca66f0a5a5 100755
--- a/minecraftd.sh
+++ b/minecraftd.sh
@@ -50,9 +50,9 @@ else
fi
# Choose which flavor of netcat is to be used
-if command -vnetcat &> /dev/null; then
+if command -v netcat &> /dev/null; then
NETCAT_CMD="netcat"
-elif command -vncat &> /dev/null; then
+elif command -v ncat &> /dev/null; then
NETCAT_CMD="ncat"
else
NETCAT_CMD=""
@@ -295,7 +295,7 @@ server_restart() {
# Backup the directories specified in BACKUP_PATHS
backup_files() {
# Check for the availability of the tar binaries
- if ! command -vtar &> /dev/null; then
+ if ! command -v tar &> /dev/null; then
>&2 echo "The tar binaries are needed for a backup."
exit 11
fi
@@ -329,7 +329,7 @@ backup_files() {
# Restore backup
backup_restore() {
# Check for the availability of the tar binaries
- if ! command -vtar &> /dev/null; then
+ if ! command -v tar &> /dev/null; then
>&2 echo "The tar binaries are needed for a backup."
exit 11
fi