pastebin - collaborative debugging tool
eckelmann.kpaste.net RSS


geht trotzdem nit
Posted by Anonymous on Wed 24th Mar 2021 14:18
raw | new post
modification of post by Anonymous (view diff)

  1. is_layer ()
  2. {
  3.         local res=1
  4.         local values
  5.         local name
  6.         if is_tree $1; then
  7.                 git cat-file -p $1 | \
  8.                 while read i
  9.                 do
  10.                         values=($i)
  11.                         name=${values[3]}
  12.                         if [ "$name" = "base" ]; then
  13.                                 echo "found base"
  14.                                 res=0
  15.                                 break
  16.                         fi
  17.                 done
  18.         fi
  19.         echo "Reached end"
  20.         return $res
  21. }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at