Git Product home page Git Product logo

Comments (6)

niw avatar niw commented on August 16, 2024

@jhfrontz scripts/exec_with_gems should exist (See https://github.com/niw/HapticKey/blob/master/scripts/exec_with_gems,) probably your working directory is not clean.

from haptickey.

jhfrontz avatar jhfrontz commented on August 16, 2024

@niw that's the weird thing-- it does exist:

$ find scripts -type f
scripts/pod
scripts/sparkle_appcast
scripts/exec_with_gems

If I run the pods script directly:

$ bash -x  scripts/pod install 
+++ dirname scripts/pod
++ cd -P scripts
++ pwd
+ readonly 'current_dir=./scripts
/Users/jhf/stuff/HapticKey/scripts'
+ current_dir='./scripts
/Users/jhf/stuff/HapticKey/scripts'
+ exec './scripts
/Users/jhf/stuff/HapticKey/scripts/exec_with_gems' pod install
scripts/pod: line 5: /Users/jhf/stuff/HapticKey/scripts
/Users/jhf/stuff/HapticKey/scripts/exec_with_gems: No such file or directory
scripts/pod: line 5: exec: /Users/jhf/stuff/HapticKey/scripts
/Users/jhf/stuff/HapticKey/scripts/exec_with_gems: cannot execute: No such file or directory

Aha! I think it is this: https://github.com/devrandom/gitian-builder/pull/202/files#r249558443
(https://unix.stackexchange.com/questions/245453/how-to-not-show-path-after-cd-command-with-cdpath-set )

from haptickey.

jhfrontz avatar jhfrontz commented on August 16, 2024

From the cd section of bash man page:

If a non-empty directory name from CDPATH is used, or if - is the first argument, and the
directory change is successful, the absolute pathname of the new working directory is written
to the standard output.

from haptickey.

jhfrontz avatar jhfrontz commented on August 16, 2024

This allowed me to build/install:

$ diff --git a/scripts/pod b/scripts/pod
index 6a35105..61004af 100755
--- a/scripts/pod
+++ b/scripts/pod
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
 
-readonly current_dir="$(cd -P "$(dirname "${BASH_SOURCE[0]}")"; pwd)"
+readonly current_dir="$(cd -P "$(dirname "${BASH_SOURCE[0]}")">/dev/null; pwd)"
 
 exec "$current_dir/exec_with_gems" pod "$@"

from haptickey.

niw avatar niw commented on August 16, 2024

Ah, I see. That's unexpected. Let me fix the script, thanks!

from haptickey.

niw avatar niw commented on August 16, 2024

Fixed by 8fafbc6. Thanks!

from haptickey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.