From cff5538c3778a5d62119f1fe17b037ae8864d049 Mon Sep 17 00:00:00 2001 From: Shlomin Maksim Date: Wed, 14 Jun 2017 13:33:16 +0300 Subject: [PATCH] fix interpreter --- backup.sh | 4 ++-- mysqldump.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backup.sh b/backup.sh index 7cb1288..90680d9 100755 --- a/backup.sh +++ b/backup.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash case $# in 2) pathFrom=$1; pathTo=$2 ;; *) echo "Expected first parameter for archive, second - destination path"; exit 1 ;; @@ -10,7 +10,7 @@ pathFull="$pathTo/$dirName""_""$fileName.tar.gz" if ! test -w $pathTo then - echo "enabled to write $pathTo" + echo "unable to write $pathTo" exit 1 else tar czf $pathFull $pathFrom diff --git a/mysqldump.sh b/mysqldump.sh index edb3d45..aaf3c82 100755 --- a/mysqldump.sh +++ b/mysqldump.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash pathTo='/tmp' dbuser='root' dbpass='1' @@ -26,4 +26,4 @@ do echo "Error of db dump $dbname" fi fi -done \ No newline at end of file +done