文件操作 - corepack.ps1
返回文件管理
返回主菜单
删除本文件
文件: /opt/alt/alt-nodejs19/root/usr/lib/node_modules/corepack/shims/corepack.ps1
编辑文件内容
#!/usr/bin/pwsh $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent $exe="" if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { # Fix case when both the Windows and Linux builds of Node # are installed in the same directory $exe=".exe" } $ret=0 if (Test-Path "$basedir/node$exe") { # Support pipeline input if ($MyInvocation.ExpectingInput) { $input | & "$basedir/node$exe" "$basedir/../dist/corepack.js" $args } else { & "$basedir/node$exe" "$basedir/../dist/corepack.js" $args } $ret=$LASTEXITCODE } else { # Support pipeline input if ($MyInvocation.ExpectingInput) { $input | & "node$exe" "$basedir/../dist/corepack.js" $args } else { & "node$exe" "$basedir/../dist/corepack.js" $args } $ret=$LASTEXITCODE } exit $ret
修改文件时间
将文件时间修改为当前时间的前一年
删除文件