opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

post-checkout (328B)


      1 #!/bin/sh
      2 
      3 old=$1
      4 new=$2
      5 flag=$3
      6 
      7 # If HEAD didn't change or if this is just a file checkout, do a complete
      8 # permissions fix.
      9 if [ "$old" = 0000000000000000000000000000000000000000 ] || [ "$old" = "$new" ] || [ "$flag" = 0 ] ; then
     10 	set "$new"
     11 else
     12 	set "$old" "$new"
     13 fi
     14 
     15 exec "$(git config opkg.root)"/libexec/applyperms "$@"