首页 > 其他分享 >GitHub——Error: Process completed with exit code 126.

GitHub——Error: Process completed with exit code 126.

时间:2022-09-01 00:56:37浏览次数:82  
标签:index git Process completed sh code exit 权限

前言

如题,github的actions在执行脚本的时候提示权限不足,既然权限不足,那就赋予权限呗,于是查了下git文档,还真有这个命令;

git update-index: git update-index

内容

报错内容

Run ./build.sh
/home/runner/work/_temp/fc8e00a4-5d7c-4833-a2bb-5b7778b331a2.sh: line 1: ./build.sh: Permission denied
Error: Process completed with exit code 126.

修改权限

!> 修改完权限之后不要忘记重新上传代码

git update-index --chmod=+x build.sh

标签:index,git,Process,completed,sh,code,exit,权限
From: https://www.cnblogs.com/wangyang0210/p/16645095.html

相关文章

  • python + VS code + Docker
    目录1.安装docker2.构建映像3.启动docker4.安装VisualStudioCode并配置5.参考在python项目开发中,经常需要安装依赖包,还要考虑版本兼容问题。尤其是,升级一个python版本,......
  • Codeforces Round #817 (Div. 4) ABCDEFG
    https://codeforces.com/contest/1722/problem/A#include<bits/stdc++.h>usingnamespacestd;typedeflonglongLL;typedefpair<int,int>PII;constintN=200200,......
  • AtCoder ABC 259 F Select Edges
    题意:​ 给出一棵树,边带权,对于点i,最多保留d[i]条边,可以被分成连通块,请问边权和最大是多少分析:​ 因为可以被分成连通块,我们就可以对点i划分两种状态。第一种是点i不与父......
  • Visual Studio神级插件之CodeMaid自动整理你的代码
    介绍当我们平时coding时,代码的格式千奇百怪,不知道快捷键的同学,可能还在徒手敲敲空格或者缩进。知道快捷的同学,每次写完后,会按下快捷键,单有时还会忘记,使得阅读代码时不太......
  • [Google] LeetCode 489 Robot Room Cleaner
    Youarecontrollingarobotthatislocatedsomewhereinaroom.Theroomismodeledasanmxnbinarygridwhere0representsawalland1representsanempt......
  • leetcode 1019. 链表中的下一个更大节点 js实现
    给定一个长度为 n 的链表 head对于列表中的每个节点,查找下一个更大节点的值。也就是说,对于每个节点,找到它旁边的第一个节点的值,这个节点的值严格大于它的值。返回......
  • leetcode临时存储
    classSolution{public:intbinarySearch(vector<int>&nums,inttarget,boollower){intleft=0,right=(int)nums.size()-1,ans=(int)nums......
  • VSCode个性化的配置(QIUQIU&LL)
    1、下载插件Eclipse快捷键(我以前用Eclipse习惯了,大家不需要)PremitterVeturkoroFileHeader2、修改VSCode设置3、粘贴下面的代码{"workbench.iconTheme":......
  • EF codeFirst映射多出一个Discriminator列
    我有一个EF类需要映射到数据库,然后有一个其他的类继承了这个类,使用codefirst便会出现该问题解决方法:加上NotMappedpublicclassA{[Key]public......
  • leetcode 409 Longest Palindrome 最长回文串(简单)
    一、题目大意给定一个包含大写字母和小写字母的字符串s,返回通过这些字母构造成的最长的回文串。在构造过程中,请注意区分大小写。比如"Aa"不能当做一个回文字符......