Search notes:

Script: gitp.sh

#
#  ${git_work_dir%/}
#      This expression removes the trailing slash in $git_work_dir
#
#  ${PWD##${git_work_dir%/}}
#       This expression removes $git_work_dir (without trailing slash)
#       from the beginning of $PWD
#
#       If this expression != PWD, we could remove $git_work_dir from
#       $PWD, so we are in or below $git_work_dir
#


# 2017-02-08 [[ -> [
# if [[ ${PWD##${git_work_dir%/}} != ${PWD} ]]; then
if [ "${PWD##${git_work_dir%/}}" != ${PWD} ]; then
 : #  echo "not asking for TQ84_GITHUB_PW"
else

  if [ -z ${TQ84_GITHUB_PW+x} ]; then
    echo -n "TQ84_GITHUB_PW: "
    read TQ84_GITHUB_PW
    export TQ84_GITHUB_PW
  fi

fi

git-push.pl
Github repository scripts-and-utilities, path: /gitp.sh

See also

Scripts

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759390905, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/tools/scripts/personal/gitp_sh(65): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78