Newer
Older
barebox / dts / scripts / index-filter.sh
@Sascha Hauer Sascha Hauer on 17 Nov 2017 260 bytes dts: update to v4.14-rc6
#!/bin/bash

set -e
set -o pipefail

${SCRIPTS}/rewrite-index.pl | GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info

if [ -f "$GIT_INDEX_FILE.new" ] ; then
    mv "$GIT_INDEX_FILE.new" "$GIT_INDEX_FILE"
else
    rm "$GIT_INDEX_FILE"
fi

exit 0