mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
backupiso: Fix order of variables
Some values in variables were corrected but used before. Reported-by: Matthias Fischer <matthias.fischer@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -1,8 +1,26 @@
|
||||
#!/bin/sh
|
||||
arch=$(uname -m)
|
||||
|
||||
# FIXME: edit this lines before release
|
||||
IPFVER=2.21
|
||||
COREVER=$(cat /opt/pakfire/db/core/mine)
|
||||
# FIXME: edit this lines before release
|
||||
|
||||
arch=$(uname -m)
|
||||
|
||||
case $arch in
|
||||
i?86)
|
||||
arch="i586"
|
||||
echo "Your arch is $arch"
|
||||
;;
|
||||
x86_64)
|
||||
arch="x86_64"
|
||||
echo "Your arch is $arch"
|
||||
;;
|
||||
*)
|
||||
echo "Arch is not supported"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
URL="https://downloads.ipfire.org/releases/ipfire-2.x/$IPFVER-core$COREVER/"
|
||||
ISO="ipfire-$IPFVER.$arch-full-core$COREVER.iso"
|
||||
|
||||
@@ -33,21 +51,6 @@ makeiso() {
|
||||
return 0
|
||||
}
|
||||
|
||||
case $arch in
|
||||
i?86)
|
||||
arch="i586"
|
||||
echo "Your arch is $arch"
|
||||
;;
|
||||
x86_64)
|
||||
arch="x86_64"
|
||||
echo "Your arch is $arch"
|
||||
;;
|
||||
*)
|
||||
echo "Arch is not supported"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -z $1 ]; then
|
||||
echo usage: $0 backup-file
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user