Skip to content

Commit

Permalink
fix interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepuka committed Jun 14, 2017
1 parent d19f129 commit cff5538
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backup.sh
Original file line number Diff line number Diff line change
@@ -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 ;;
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions mysqldump.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
pathTo='/tmp'
dbuser='root'
dbpass='1'
Expand Down Expand Up @@ -26,4 +26,4 @@ do
echo "Error of db dump $dbname"
fi
fi
done
done

0 comments on commit cff5538

Please sign in to comment.