From 385b25a87598cda5319d058c88b09585dea32b4f Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 26 Apr 2022 09:39:36 -0400 Subject: [PATCH] Delete pimox-haos-vm.sh --- vm/pimox-haos-vm.sh | 70 --------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 vm/pimox-haos-vm.sh diff --git a/vm/pimox-haos-vm.sh b/vm/pimox-haos-vm.sh deleted file mode 100644 index 012208af..00000000 --- a/vm/pimox-haos-vm.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/bash -# for testing only -set -o pipefail -shopt -s expand_aliases -alias die='EXIT=$? LINE=$LINENO error_exit' -trap die ERR -function error_exit() { - REASON=$1 - MSG="\e[91mERROR: \e[93m$EXIT@" - if [ -z "$REASON" ]; then - MSG="$MSG$LINE:" - REASON="Unknown failure occured." - else - MSG="$MSG`echo $(( $LINE - 1 ))`:" - fi - echo -e "$MSG \e[97m$REASON\e[39m\e[49m" - exit $EXIT -} -function cleanup() { - popd >/dev/null - rm -rf $TMP -} -trap cleanup EXIT -TMP=`mktemp -d` -pushd $TMP >/dev/null - -VMID=$(cat<&/dev/null && \ -qm importdisk $VMID ${FILE%".xz"} local 1>&/dev/null -echo -e "Completed Successfully, New VM ID is $VMID \n"