Browse Source

die() if variable expansion fails

Alois Mahdal 9 years ago
parent
commit
4a0aaaf8fd
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/include/build.sh

+ 1
- 1
src/include/build.sh View File

130
         done
130
         done
131
     echo "s|__CODENAME__|$CODENAME|;"     >> "$script"
131
     echo "s|__CODENAME__|$CODENAME|;"     >> "$script"
132
     echo "s|__VERSION__|$(get_version)|;" >> "$script"
132
     echo "s|__VERSION__|$(get_version)|;" >> "$script"
133
-    perl -wp "$script"
133
+    perl -wp "$script" || die "expand_variables failed"
134
     rm "$script"
134
     rm "$script"
135
 }
135
 }
136
 
136