在UBUNTU上编码BASH curl的URL



我将下面的行传递给githook

curl -d "githook[action]=code_commit" -d "githook[stats]=$encodestat"  -d "githook[project_key]=$Vproject" -d "githook[user_email]=$Vemail" -d "githook[description]=SM$encodemsg" http://mydomain/githooks 

如果我回显这行,我得到

curl -d "githook[action]=code_commit" -d "githook[stats]=%201%20file%20changed%2C%201%20insertion%28%2B%29%2C%201%20deletion%28-%29" -d "githook[project_key]=divine_frost_994_147_5511" -d "githook[user_email]=steven@domain.uk" -d "githook[description]=SMtest%20git" http://mydomain.uk/githooks

当我复制粘贴时执行并运行

但是,当在githook中以第一种形式触发时,它拒绝执行而没有错误

我真的看不清屏幕了:/

如果有人有任何线索我会很感激,它正在执行,然后我得到了一个GLob错误,用-g尝试它,现在它似乎没有执行,重新启动,没有快乐

我一眼就看出来了。

我们从初始化器中编写钩子文件,我们不需要转义引号,因为bash会注入变量

我今天早上起来的时候看到了,拍了拍额头,孩子们晚上不要编程。

会考虑删除吗?因为除了我,这里没有任何人可以学习——每12小时离开屏幕一次?

最新更新