Commit da4b6788 authored by PoroCYon's avatar PoroCYon
Browse files

fix bootstrap, other stuff

parent 19755d21
......@@ -31,7 +31,7 @@ escape_string() {
}
export -f escape_string
temp_filename() {
echo "/tmp/sspt-$(/dev/urandom head -c 4 /dev/urandom | base32)"
echo "/tmp/sspt-$(head -c 4 /dev/urandom | base32)"
}
export -f temp_filename
file_exists_glob() {
......
......@@ -166,7 +166,7 @@ main() {
# need to register it before we can autogen the .sspt file
exec_subcommand src-db reg "$PKG_NAME" dummy_revision
if [ "$DO_AUTOGEN" = "auto" ] && ! [ -f "{SSPT_DL_DIR:?}/$PKG_NAME/.sspt" ]; then
if [ "$DO_AUTOGEN" = "auto" ] && ! [ -f "${SSPT_DL_DIR:?}/$PKG_NAME/.sspt" ]; then
DO_AUTOGEN='y'
fi
......
......@@ -8,7 +8,7 @@ cfgfile="$cfgfile/sspt.conf"
edit_the_conf() {
local edit_conf=
read -r -e -p "Edit the sspt.conf file? (Y/n) " $edit_conf
read -r -e -p "Edit the sspt.conf file? (Y/n) " edit_conf
if [ "$edit_conf" != "n" ] && [ "$edit_conf" != "N" ]; then
command -v "$EDITOR" >/dev/null 2>&1 && "$EDITOR" "$cfgfile" && return
command -v "nano" >/dev/null 2>&1 && "nano" "$cfgfile" && return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment