Skip to content

Commit

Permalink
Merge pull request #3 from mullnerz/fix-pass-command-pipe
Browse files Browse the repository at this point in the history
Remove unnecessary cat from command pipe
  • Loading branch information
skurudo committed Dec 4, 2019
2 parents e3c0694 + fa75724 commit 29a0d4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pma-centos.sh
Expand Up @@ -27,7 +27,7 @@ echo "........";
echo "......";

echo "Generate password for PMA (pma.txt)";
PASS=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -c 32 ; echo`
PASS=`tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c 32 ; echo`
echo "PMA Password = $PASS";

#centos phpmyadmin path
Expand Down
2 changes: 1 addition & 1 deletion pma-debian.sh
Expand Up @@ -27,7 +27,7 @@ echo "........";
echo "......";

echo "Generate password for PMA (pma.txt)";
PASS=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -c 32 ; echo`
PASS=`tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c 32 ; echo`
echo "PMA Password = $PASS";

#ubuntu phpmyadmin path
Expand Down
2 changes: 1 addition & 1 deletion pma-ubuntu.sh
Expand Up @@ -27,7 +27,7 @@ echo "........";
echo "......";

echo "Generate password for PMA (pma.txt)";
PASS=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -c 32 ; echo`
PASS=`tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c 32 ; echo`
echo "PMA Password = $PASS";

#debian phpmyadmin path
Expand Down

0 comments on commit 29a0d4d

Please sign in to comment.