wbcmc/add_image.sh

7 lines
192 B
Bash
Executable File

#!/bin/bash
printf -v file "%q" "$1"
printf -v title "%q" "$2"
printf -v hover "%q" "$3"
mysql -u web -e"SET @file = '$file'; SET @title = '$title'; SET @hover = '$hover'; $(<add_image.sql)"