Permalink
Browse files

write it more often

  • Loading branch information...
geirha committed Sep 23, 2012
1 parent 7b30aa2 commit d006441a5425238e954137d98d980bf64f127620
Showing with 2 additions and 7 deletions.
  1. +2 −7 generate-initramfs
View
@@ -225,7 +225,6 @@ case $(uname -m) in
esac || exit
source ./manpages # declare -A md5s urls
-mans_updated=0
for cmd in "${!commands[@]}"; do
if ! path=$(readlink -f "$(type -P "$cmd")") 2>/dev/null; then
@@ -261,16 +260,12 @@ for cmd in "${!command_paths[@]}"; do
printf 'Updating manual for %s\n' "$cmd" >&2
md5s[$cmd]=$md5
urls[$cmd]=$(curl -F 'sprunge=<-' http://sprunge.us < man.tmp|tr -d ' ') &&
- mans_updated=1
+ declare -p md5s urls > manpages.new &&
+ mv manpages{.new,}
sleep 2
fi
done
-if ((mans_updated)); then
- declare -p md5s urls > manpages.new &&
- mv manpages{.new,}
-fi
-
## Some additional commands
cat > initramfs/bin/bunzip2 << 'EOF'

0 comments on commit d006441

Please sign in to comment.