HISE Logo Forum
    • Categories
    • Register
    • Login

    Package post-install script weirdness

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 226 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M_HollowayM
      M_Holloway
      last edited by

      Hi

      I have a post install script to move a zip file containing samples to the User sample folder and it works fine but here's the odd thing; I can remove it using rm but it won't extract using unzip.

      cd /Users/${USER}...
      unzip file.zip
      #rm file.zip
      

      does nothing

      cd /Users/${USER}...
      unzip file.zip
      rm file.zip
      

      removes the file

      I have used unzip in another post-install script and it worked without problems.

      As ever, any thoughts gratefully received.

      Thanks

      Mike

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by d.healey

        Does it work when you run the command manually?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        M_HollowayM 1 Reply Last reply Reply Quote 0
        • M_HollowayM
          M_Holloway @d.healey
          last edited by

          @d-healey It had done in the other script I had but not in this one... when I checked, the zip was only 4kB!

          Reworked the script and now it's all working; moves the sample zip, extracts it, deletes the zip and then deletes the temp folder that it installs to.

          Thanks for nudging me in the right direction 👍

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          56

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts